JBossWS SVN: r8113 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws: metadata/umdm and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-08-19 08:59:14 -0400 (Tue, 19 Aug 2008)
New Revision: 8113
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java
Log:
[JBPAPP-1085] Implement standard message context properties.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java 2008-08-18 10:54:25 UTC (rev 8112)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/jaxws/handler/MessageContextJAXWS.java 2008-08-19 12:59:14 UTC (rev 8113)
@@ -23,16 +23,22 @@
// $Id: MessageContextImpl.java 275 2006-05-04 21:36:29Z jason.greene(a)jboss.com $
+import java.io.IOException;
+import java.net.URL;
+
import javax.xml.ws.handler.MessageContext;
import org.jboss.logging.Logger;
+import org.jboss.ws.WSException;
import org.jboss.ws.core.CommonMessageContext;
import org.jboss.ws.core.binding.SerializationContext;
import org.jboss.ws.core.jaxws.SerializationContextJAXWS;
import org.jboss.ws.core.soap.MessageContextAssociation;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.OperationMetaData;
import org.jboss.ws.metadata.umdm.ServiceMetaData;
import org.jboss.xb.binding.NamespaceRegistry;
+import org.xml.sax.InputSource;
/**
* The interface MessageContext abstracts the message context that is processed by a handler in the handle method.
@@ -105,12 +111,43 @@
MessageContextAssociation.popMessageContext();
SOAPMessageContextJAXWS resContext = new SOAPMessageContextJAXWS(reqContext);
resContext.setSOAPMessage(null);
-
+
// Reverse the direction
resContext.put(MessageContext.MESSAGE_OUTBOUND_PROPERTY, new Boolean(!outbound));
-
+
MessageContextAssociation.pushMessageContext(resContext);
return resContext;
}
+ @Override
+ public void setOperationMetaData(OperationMetaData opMetaData)
+ {
+ super.setOperationMetaData(opMetaData);
+
+ // [JBWS-2031] Implement standard message context properties
+ if (opMetaData != null)
+ {
+ EndpointMetaData epMetaData = opMetaData.getEndpointMetaData();
+ ServiceMetaData serviceMetaData = epMetaData.getServiceMetaData();
+
+ URL wsdlURL = serviceMetaData.getWsdlFileOrLocation();
+ if (wsdlURL != null)
+ {
+ try
+ {
+ InputSource inputSource = new InputSource(wsdlURL.openStream());
+ put(MessageContext.WSDL_DESCRIPTION, inputSource);
+ }
+ catch (IOException ex)
+ {
+ throw new WSException("Cannot open: " + wsdlURL);
+ }
+ }
+
+ put(MessageContext.WSDL_SERVICE, serviceMetaData.getServiceName());
+ put(MessageContext.WSDL_PORT, epMetaData.getPortName());
+ put(MessageContext.WSDL_INTERFACE, epMetaData.getPortTypeName());
+ put(MessageContext.WSDL_OPERATION, opMetaData.getQName());
+ }
+ }
}
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java 2008-08-18 10:54:25 UTC (rev 8112)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/umdm/ServiceMetaData.java 2008-08-19 12:59:14 UTC (rev 8113)
@@ -78,7 +78,7 @@
private String wsdlFile;
private URL mappingLocation;
private String wsdlPublishLocation;
-
+
// The optional service handlers
private List<HandlerMetaDataJAXWS> handlers = new ArrayList<HandlerMetaDataJAXWS>();
@@ -89,16 +89,16 @@
// Arbitrary properties given by <call-property>
private Properties properties;
-
+
// derived cached encoding style
private Use encStyle;
-
+
// The security configuration
private WSSecurityConfiguration securityConfig;
-
+
// The key to the wsdl cache
private String wsdlCacheKey;
-
+
public ServiceMetaData(UnifiedMetaData wsMetaData, QName serviceName)
{
this.wsMetaData = wsMetaData;
@@ -190,7 +190,7 @@
{
handlers.add(handler);
}
-
+
public List<HandlerMetaDataJAXWS> getHandlerMetaData()
{
return Collections.unmodifiableList(handlers);
@@ -279,6 +279,28 @@
*/
public WSDLDefinitions getWsdlDefinitions()
{
+ URL wsdlURL = getWsdlFileOrLocation();
+
+ WSDLDefinitions wsdlDefinitions = null;
+ if (wsdlURL != null)
+ {
+ // The key should not after it is assigned
+ if (wsdlCacheKey == null)
+ wsdlCacheKey = "#" + (wsdlLocation != null ? wsdlLocation : wsdlFile);
+
+ wsdlDefinitions = (WSDLDefinitions)wsMetaData.getWsdlDefinition(wsdlCacheKey);
+ if (wsdlDefinitions == null)
+ {
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ wsdlDefinitions = factory.parse(wsdlURL);
+ wsMetaData.addWsdlDefinition(wsdlCacheKey, wsdlDefinitions);
+ }
+ }
+ return wsdlDefinitions;
+ }
+
+ public URL getWsdlFileOrLocation()
+ {
URL wsdlURL = wsdlLocation;
if (wsdlURL == null && wsdlFile != null)
{
@@ -291,7 +313,7 @@
{
// ignore
}
-
+
// Try wsdlFile as child from root
if (wsdlURL == null)
{
@@ -306,23 +328,8 @@
}
}
}
-
- WSDLDefinitions wsdlDefinitions = null;
- if (wsdlURL != null)
- {
- // The key should not after it is assigned
- if (wsdlCacheKey == null)
- wsdlCacheKey = "#" + (wsdlLocation != null ? wsdlLocation : wsdlFile);
-
- wsdlDefinitions = (WSDLDefinitions)wsMetaData.getWsdlDefinition(wsdlCacheKey);
- if (wsdlDefinitions == null)
- {
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- wsdlDefinitions = factory.parse(wsdlURL);
- wsMetaData.addWsdlDefinition(wsdlCacheKey, wsdlDefinitions);
- }
- }
- return wsdlDefinitions;
+
+ return wsdlURL;
}
public TypeMappingImpl getTypeMapping()
16 years, 4 months
JBossWS SVN: r8112 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084: src/main/java/org/jboss/ws/core/jaxws/client and 10 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-08-18 06:54:25 -0400 (Mon, 18 Aug 2008)
New Revision: 8112
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/EndpointConfigMetaData.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/JBWS2187TestCase.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestHandler.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/jboss-web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/web.xml
Removed:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/JBWS2187TestCase.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestHandler.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/jboss-web.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/web.xml
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/ant-import-tests/build-jars-jaxws.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerDelegateJAXWS.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerResolverImpl.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/extensions/policy/deployer/domainAssertion/WSSecurityAssertionDeployer.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/tools/metadata/ToolsEndpointMetaData.java
Log:
[JBPAPP-1084] Handler Chain Management Prevents Service Re-Use.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/ant-import-tests/build-jars-jaxws.xml 2008-08-18 10:27:27 UTC (rev 8111)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/ant-import-tests/build-jars-jaxws.xml 2008-08-18 10:54:25 UTC (rev 8112)
@@ -323,7 +323,18 @@
<include name="org/jboss/test/ws/jaxws/jbws1422/*.*"/>
</fileset>
</jar>
-
+
+ <!-- jaxws-jbws2187 -->
+ <war warfile="${tests.output.dir}/libs/jaxws-jbws2187.war" webxml="${tests.output.dir}/resources/jaxws/jbws2187/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/resources/jaxws/jbws2187/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
+
<!-- jaxws-jbws1505 -->
<jar destfile="${tests.output.dir}/libs/jaxws-jbws1505.jar">
<fileset dir="${tests.output.dir}/classes">
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java 2008-08-18 10:27:27 UTC (rev 8111)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/client/ClientImpl.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -28,7 +28,6 @@
import java.util.HashSet;
import java.util.List;
import java.util.Map;
-import java.util.Observable;
import java.util.Set;
import javax.activation.DataHandler;
@@ -47,7 +46,6 @@
import javax.xml.ws.soap.SOAPBinding;
import javax.xml.ws.soap.SOAPFaultException;
-import org.jboss.logging.Logger;
import org.jboss.remoting.transport.http.HTTPMetadataConstants;
import org.jboss.util.NotImplementedException;
import org.jboss.ws.core.CommonBindingProvider;
@@ -61,8 +59,8 @@
import org.jboss.ws.core.jaxws.handler.PortInfoImpl;
import org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS;
import org.jboss.ws.core.soap.MessageContextAssociation;
-import org.jboss.ws.metadata.config.Configurable;
-import org.jboss.ws.metadata.config.ConfigurationProvider;
+import org.jboss.ws.metadata.umdm.ClientEndpointMetaData;
+import org.jboss.ws.metadata.umdm.EndpointConfigMetaData;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.OperationMetaData;
import org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType;
@@ -73,35 +71,39 @@
* @author Thomas.Diesler(a)jboss.org
* @since 04-Jul-2006
*/
-public class ClientImpl extends CommonClient implements BindingProvider, Configurable
+
+public class ClientImpl extends CommonClient implements BindingProvider
{
- // provide logging
- private static Logger log = Logger.getLogger(ClientImpl.class);
- // the associated endpoint meta data
- private final EndpointMetaData epMetaData;
+ // the associated endpoint meta data
+ private final EndpointMetaData epMetaData;
+ private EndpointConfigMetaData epConfigMetaData;
- // Keep a handle on the resolver so that updateConfig calls may revisit the associated chains
- private final HandlerResolver handlerResolver;
-
- private Map<HandlerType, HandlerChainExecutor> executorMap = new HashMap<HandlerType, HandlerChainExecutor>();
+ // Keep a handle on the resolver so that updateConfig calls may revisit the associated chains
+ private final HandlerResolver handlerResolver;
- private static HandlerType[] HANDLER_TYPES = new HandlerType[] {HandlerType.PRE, HandlerType.ENDPOINT, HandlerType.POST};
-
- public ClientImpl(EndpointMetaData epMetaData, HandlerResolver handlerResolver)
+ private Map<HandlerType, HandlerChainExecutor> executorMap = new HashMap<HandlerType, HandlerChainExecutor>();
+
+ private static HandlerType[] HANDLER_TYPES = new HandlerType[] { HandlerType.PRE, HandlerType.ENDPOINT, HandlerType.POST };
+
+ public ClientImpl(EndpointMetaData epMetaData, HandlerResolver handlerResolver)
{
super(epMetaData);
setTargetEndpointAddress(epMetaData.getEndpointAddress());
this.epMetaData = epMetaData;
- this.handlerResolver = handlerResolver;
+ this.epConfigMetaData = epMetaData.getEndpointConfigMetaData();
+ if (handlerResolver instanceof HandlerResolverImpl)
+ {
+ this.handlerResolver = new HandlerResolverImpl((HandlerResolverImpl)handlerResolver);
+ }
+ else
+ {
+ this.handlerResolver = handlerResolver;
+ }
+
initBindingHandlerChain(false);
-
- // The config may change at some later point in time
- // when applications utilize the ServiceDecorator API
- // When clients change the config-name, we need reset the handlerchain
- ((ConfigurationProvider)epMetaData).registerConfigObserver(this);
}
/**
@@ -111,42 +113,31 @@
{
BindingExt binding = (BindingExt)getBindingProvider().getBinding();
- PortInfo portInfo = getPortInfo(epMetaData);
+ PortInfo portInfo = getPortInfo(epMetaData);
- if (handlerResolver != null)
- {
+ if (handlerResolver != null)
+ {
- boolean jbossHandlerResolver = handlerResolver instanceof HandlerResolverImpl;
-
- if (jbossHandlerResolver) // knows about PRE and POST handlers
- {
- HandlerResolverImpl impl = (HandlerResolverImpl)handlerResolver;
- impl.initHandlerChain(epMetaData, HandlerType.PRE, clearExistingHandlers);
- impl.initHandlerChain(epMetaData, HandlerType.ENDPOINT, clearExistingHandlers);
- impl.initHandlerChain(epMetaData, HandlerType.POST, clearExistingHandlers);
+ boolean jbossHandlerResolver = handlerResolver instanceof HandlerResolverImpl;
- List<Handler> preChain = impl.getHandlerChain(portInfo, HandlerType.PRE);
- List<Handler> postChain = impl.getHandlerChain(portInfo, HandlerType.POST);
-
- binding.setHandlerChain(postChain, HandlerType.POST);
- binding.setHandlerChain(preChain, HandlerType.PRE);
- }
+ if (jbossHandlerResolver) // knows about PRE and POST handlers
+ {
+ HandlerResolverImpl impl = (HandlerResolverImpl)handlerResolver;
+ impl.initHandlerChain(epConfigMetaData, HandlerType.PRE, clearExistingHandlers);
+ impl.initHandlerChain(epConfigMetaData, HandlerType.ENDPOINT, clearExistingHandlers);
+ impl.initHandlerChain(epConfigMetaData, HandlerType.POST, clearExistingHandlers);
- // The regular handler chain
- List<Handler> endpointChain = handlerResolver.getHandlerChain(portInfo);
- binding.setHandlerChain(endpointChain);
- }
- }
+ List<Handler> preChain = impl.getHandlerChain(portInfo, HandlerType.PRE);
+ List<Handler> postChain = impl.getHandlerChain(portInfo, HandlerType.POST);
- /**
- * Callback when the config-name or config-file changes.
- */
- public void update(Observable observable, Object object)
- {
- log.debug("Configuration change event received. Reconfigure handler chain: " + object);
+ binding.setHandlerChain(postChain, HandlerType.POST);
+ binding.setHandlerChain(preChain, HandlerType.PRE);
+ }
- // re-populate the binding handler chain
- initBindingHandlerChain(true);
+ // The regular handler chain
+ List<Handler> endpointChain = handlerResolver.getHandlerChain(portInfo);
+ binding.setHandlerChain(endpointChain);
+ }
}
@Override
@@ -382,32 +373,51 @@
throw new NotImplementedException();
}
+ public EndpointConfigMetaData getEndpointConfigMetaData()
+ {
+ return epConfigMetaData;
+ }
+
public void setConfigName(String configName, String configFile)
{
- ConfigurationProvider configProvider = (ConfigurationProvider)getEndpointMetaData();
- configProvider.setConfigName(configName, configFile);
+ if (configName == null)
+ throw new IllegalArgumentException("Config name cannot be null");
+
+ String orgConfigName = epConfigMetaData.getConfigName();
+ String orgConfigFile = epConfigMetaData.getConfigFile();
+
+ if (configFile == null)
+ {
+ configFile = orgConfigFile;
+ }
+
+ if (orgConfigName.equals(configName) == false || orgConfigFile.equals(configFile) == false)
+ {
+ epConfigMetaData = ((ClientEndpointMetaData)this.epMetaData).createEndpointConfigMetaData(configName, configFile);
+ initBindingHandlerChain(true);
+ }
}
- /**
- * Retrieve header names that can be processed by this binding
- * @return
- */
- public Set<QName> getHeaders()
+ /**
+ * Retrieve header names that can be processed by this binding
+ * @return
+ */
+ public Set<QName> getHeaders()
{
- Set<QName> headers = new HashSet<QName>();
+ Set<QName> headers = new HashSet<QName>();
- BindingExt binding = (BindingExt)getBinding();
+ BindingExt binding = (BindingExt)getBinding();
- for(HandlerType type : HANDLER_TYPES)
- {
- for(Handler bindingHandler : binding.getHandlerChain(type))
- {
- if(bindingHandler instanceof SOAPHandler)
- headers.addAll( ((SOAPHandler)bindingHandler).getHeaders());
- }
- }
-
- return headers;
+ for (HandlerType type : HANDLER_TYPES)
+ {
+ for (Handler bindingHandler : binding.getHandlerChain(type))
+ {
+ if (bindingHandler instanceof SOAPHandler)
+ headers.addAll(((SOAPHandler)bindingHandler).getHeaders());
+ }
+ }
+
+ return headers;
}
@Override
@@ -416,7 +426,7 @@
Object bool = getRequestContext().get(BindingProvider.SESSION_MAINTAIN_PROPERTY);
return Boolean.TRUE.equals(bool);
}
-
+
private PortInfo getPortInfo(EndpointMetaData epMetaData)
{
QName serviceName = epMetaData.getServiceMetaData().getServiceName();
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerDelegateJAXWS.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerDelegateJAXWS.java 2008-08-18 10:27:27 UTC (rev 8111)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerDelegateJAXWS.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -35,6 +35,7 @@
import org.jboss.logging.Logger;
import org.jboss.ws.core.server.ServerHandlerDelegate;
import org.jboss.ws.core.soap.MessageContextAssociation;
+import org.jboss.ws.metadata.umdm.EndpointConfigMetaData;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
import org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType;
@@ -50,11 +51,11 @@
// provide logging
private static Logger log = Logger.getLogger(HandlerDelegateJAXWS.class);
private HandlerResolverImpl resolver = new HandlerResolverImpl();
-
+
private ThreadLocal<HandlerChainExecutor> preExecutor = new ThreadLocal<HandlerChainExecutor>();
private ThreadLocal<HandlerChainExecutor> jaxwsExecutor = new ThreadLocal<HandlerChainExecutor>();
private ThreadLocal<HandlerChainExecutor> postExecutor = new ThreadLocal<HandlerChainExecutor>();
-
+
public HandlerDelegateJAXWS(ServerEndpointMetaData sepMetaData)
{
super(sepMetaData);
@@ -63,7 +64,7 @@
/**
* For JAXWS PRE/POST are defined in the context of an outbound message
- */
+ */
public HandlerType[] getHandlerTypeOrder()
{
return new HandlerType[] { HandlerType.POST, HandlerType.ENDPOINT, HandlerType.PRE };
@@ -76,9 +77,10 @@
// Initialize the handler chain
if (isInitialized() == false)
{
- resolver.initHandlerChain(sepMetaData, HandlerType.PRE, true);
- resolver.initHandlerChain(sepMetaData, HandlerType.ENDPOINT, true);
- resolver.initHandlerChain(sepMetaData, HandlerType.POST, true);
+ EndpointConfigMetaData ecmd = sepMetaData.getEndpointConfigMetaData();
+ resolver.initHandlerChain(ecmd, HandlerType.PRE, true);
+ resolver.initHandlerChain(ecmd, HandlerType.ENDPOINT, true);
+ resolver.initHandlerChain(ecmd, HandlerType.POST, true);
setInitialized(true);
}
@@ -90,7 +92,7 @@
public boolean callResponseHandlerChain(ServerEndpointMetaData sepMetaData, HandlerType type)
{
log.debug("callResponseHandlerChain: " + type);
- HandlerChainExecutor executor = getExecutor(type);
+ HandlerChainExecutor executor = getExecutor(type);
MessageContext msgContext = (MessageContext)MessageContextAssociation.peekMessageContext();
return (executor != null ? executor.handleMessage(msgContext) : true);
}
@@ -98,7 +100,7 @@
public void closeHandlerChain(ServerEndpointMetaData sepMetaData, HandlerType type)
{
log.debug("closeHandlerChain");
- HandlerChainExecutor executor = getExecutor(type);
+ HandlerChainExecutor executor = getExecutor(type);
MessageContext msgContext = (MessageContext)MessageContextAssociation.peekMessageContext();
if (executor != null)
{
@@ -106,11 +108,11 @@
removeExecutor(type);
}
}
-
+
public boolean callFaultHandlerChain(ServerEndpointMetaData sepMetaData, HandlerType type, Exception ex)
{
log.debug("callFaultHandlerChain: " + type);
- HandlerChainExecutor executor = getExecutor(type);
+ HandlerChainExecutor executor = getExecutor(type);
MessageContext msgContext = (MessageContext)MessageContextAssociation.peekMessageContext();
return (executor != null ? executor.handleFault(msgContext, ex) : true);
}
@@ -139,7 +141,7 @@
{
if (type == HandlerType.ALL)
throw new IllegalArgumentException("Invalid handler type: " + type);
-
+
HandlerChainExecutor executor = new HandlerChainExecutor(sepMetaData, getHandlerChain(sepMetaData, type));
if (type == HandlerType.PRE)
preExecutor.set(executor);
@@ -147,7 +149,7 @@
jaxwsExecutor.set(executor);
else if (type == HandlerType.POST)
postExecutor.set(executor);
-
+
return executor;
}
@@ -155,7 +157,7 @@
{
if (type == HandlerType.ALL)
throw new IllegalArgumentException("Invalid handler type: " + type);
-
+
HandlerChainExecutor executor = null;
if (type == HandlerType.PRE)
executor = preExecutor.get();
@@ -163,7 +165,7 @@
executor = jaxwsExecutor.get();
else if (type == HandlerType.POST)
executor = postExecutor.get();
-
+
return executor;
}
@@ -171,7 +173,7 @@
{
if (type == HandlerType.ALL)
throw new IllegalArgumentException("Invalid handler type: " + type);
-
+
if (type == HandlerType.PRE)
preExecutor.remove();
else if (type == HandlerType.ENDPOINT)
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerResolverImpl.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerResolverImpl.java 2008-08-18 10:27:27 UTC (rev 8111)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/core/jaxws/handler/HandlerResolverImpl.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -45,7 +45,7 @@
import org.jboss.logging.Logger;
import org.jboss.util.NotImplementedException;
import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.umdm.EndpointMetaData;
+import org.jboss.ws.metadata.umdm.EndpointConfigMetaData;
import org.jboss.ws.metadata.umdm.HandlerMetaData;
import org.jboss.ws.metadata.umdm.HandlerMetaDataJAXWS;
import org.jboss.ws.metadata.umdm.ServiceMetaData;
@@ -77,13 +77,29 @@
protocolMap.put("##XML_HTTP", HTTPBinding.HTTP_BINDING);
}
- private List<ScopedHandler> preHandlers = new ArrayList<ScopedHandler>();
- private List<ScopedHandler> jaxwsHandlers = new ArrayList<ScopedHandler>();
- private List<ScopedHandler> postHandlers = new ArrayList<ScopedHandler>();
+ private final List<ScopedHandler> preHandlers;
+ private final List<ScopedHandler> jaxwsHandlers;
+ private final List<ScopedHandler> postHandlers;
// understood headers
- Set<QName> headers = new HashSet<QName>();
+ private final Set<QName> headers;
+ public HandlerResolverImpl()
+ {
+ preHandlers = new ArrayList<ScopedHandler>();
+ jaxwsHandlers = new ArrayList<ScopedHandler>();
+ postHandlers = new ArrayList<ScopedHandler>();
+ headers = new HashSet<QName>();
+ }
+
+ public HandlerResolverImpl(HandlerResolverImpl parent)
+ {
+ preHandlers = new ArrayList<ScopedHandler>(parent.preHandlers);
+ jaxwsHandlers = new ArrayList<ScopedHandler>(parent.jaxwsHandlers);
+ postHandlers = new ArrayList<ScopedHandler>(parent.postHandlers);
+ headers = new HashSet<QName>(parent.headers);
+ }
+
public Set<QName> getHeaders()
{
return headers;
@@ -120,7 +136,7 @@
addHandler(classLoader, HandlerType.ENDPOINT, handlerMetaData);
}
- public void initHandlerChain(EndpointMetaData epMetaData, HandlerType type, boolean clearExistingHandlers)
+ public void initHandlerChain(EndpointConfigMetaData epConfigMetaData, HandlerType type, boolean clearExistingHandlers)
{
log.debug("initHandlerChain: " + type);
@@ -129,8 +145,8 @@
if (clearExistingHandlers)
handlerMap.clear();
- ClassLoader classLoader = epMetaData.getClassLoader();
- for (HandlerMetaData handlerMetaData : epMetaData.getHandlerMetaData(type))
+ ClassLoader classLoader = epConfigMetaData.getEndpointMetaData().getClassLoader();
+ for (HandlerMetaData handlerMetaData : epConfigMetaData.getHandlerMetaData(type))
addHandler(classLoader, type, handlerMetaData);
}
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/extensions/policy/deployer/domainAssertion/WSSecurityAssertionDeployer.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/extensions/policy/deployer/domainAssertion/WSSecurityAssertionDeployer.java 2008-08-18 10:27:27 UTC (rev 8111)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/extensions/policy/deployer/domainAssertion/WSSecurityAssertionDeployer.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -67,7 +67,6 @@
//set up handler chain as defined in standard file
ep.setConfigName("Standard WSSecurity Endpoint");
- ep.initEndpointConfig();
}
catch (Exception e)
@@ -96,7 +95,6 @@
serviceMetaData.setSecurityConfiguration(securityConfiguration);
epMetaData.setConfigName("Standard WSSecurity Client");
- epMetaData.initEndpointConfig();
}
catch (Exception e)
{
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java 2008-08-18 10:27:27 UTC (rev 8111)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/ClientEndpointMetaData.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -23,11 +23,11 @@
// $Id$
+import javax.xml.namespace.QName;
+
import org.jboss.ws.metadata.config.ConfigurationProvider;
import org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType;
-import javax.xml.namespace.QName;
-
/**
* Client side endpoint meta data.
*
@@ -38,16 +38,20 @@
{
// The endpoint address
private String endpointAddress;
-
+
public ClientEndpointMetaData(ServiceMetaData service, QName qname, QName portTypeName, Type type)
{
super(service, qname, portTypeName, type);
- configName = ConfigurationProvider.DEFAULT_CLIENT_CONFIG_NAME;
+ String configName = ConfigurationProvider.DEFAULT_CLIENT_CONFIG_NAME;
+ String configFile;
if (type == Type.JAXRPC)
configFile = ConfigurationProvider.DEFAULT_JAXRPC_CLIENT_CONFIG_FILE;
- else
- configFile = ConfigurationProvider.DEFAULT_JAXWS_CLIENT_CONFIG_FILE;
+ else configFile = ConfigurationProvider.DEFAULT_JAXWS_CLIENT_CONFIG_FILE;
+
+ EndpointConfigMetaData ecmd = getEndpointConfigMetaData();
+ ecmd.setConfigName(configName);
+ ecmd.setConfigFile(configFile);
}
public String getEndpointAddress()
@@ -60,6 +64,11 @@
this.endpointAddress = endpointAddress;
}
+ public EndpointConfigMetaData createEndpointConfigMetaData(String configName, String configFile)
+ {
+ return super.createEndpointConfigMetaData(configName, configFile);
+ }
+
public String toString()
{
StringBuilder buffer = new StringBuilder("\nClientEndpointMetaData:");
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/EndpointConfigMetaData.java (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/metadata/umdm/EndpointConfigMetaData.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/EndpointConfigMetaData.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/EndpointConfigMetaData.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -0,0 +1,172 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.metadata.umdm;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.metadata.config.CommonConfig;
+import org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData.HandlerType;
+
+/**
+ * The configurable EndpointMetaData.
+ *
+ * This class allows the configurable items to be separated
+ * from the parent EndpointMetaData allowing different clients
+ * to load their configuration independently while sharing a
+ * common EndpointMetaData.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 18th July 2008
+ */
+public class EndpointConfigMetaData
+{
+
+ private static Logger log = Logger.getLogger(EndpointConfigMetaData.class);
+
+ private final EndpointMetaData epMetaData;
+ // The REQUIRED config-name
+ protected String configName;
+ // The REQUIRED config-file
+ protected String configFile;
+
+ // The REQUIRED endpoint config
+ private CommonConfig config;
+
+ // The optional handlers
+ private List<HandlerMetaData> handlers = new ArrayList<HandlerMetaData>();
+ // True if the handlers are initialized
+ private boolean handlersInitialized;
+
+ public EndpointConfigMetaData(EndpointMetaData parent)
+ {
+ this.epMetaData = parent;
+ }
+
+ void addHandlers(List<HandlerMetaData> configHandlers)
+ {
+ for (HandlerMetaData handler : configHandlers)
+ handler.setEndpointMetaData(epMetaData);
+ handlers.addAll(configHandlers);
+ }
+
+ void addHandler(HandlerMetaData handler)
+ {
+ handler.setEndpointMetaData(epMetaData);
+ handlers.add(handler);
+ }
+
+ void clearHandlers()
+ {
+ handlers.clear();
+ handlersInitialized = false;
+ }
+
+ public List<HandlerMetaData> getHandlerMetaData(HandlerType type)
+ {
+ List<HandlerMetaData> typeHandlers = new ArrayList<HandlerMetaData>();
+ for (HandlerMetaData hmd : handlers)
+ {
+ if (hmd.getHandlerType() == type || type == HandlerType.ALL)
+ typeHandlers.add(hmd);
+ }
+ return typeHandlers;
+ }
+
+ public boolean isHandlersInitialized()
+ {
+ return handlersInitialized;
+ }
+
+ public void setHandlersInitialized(boolean flag)
+ {
+ this.handlersInitialized = flag;
+ }
+
+ void configHandlerMetaData()
+ {
+ log.debug("Configure EndpointMetaData");
+
+ List<HandlerMetaData> sepHandlers = getHandlerMetaData(HandlerType.ENDPOINT);
+ clearHandlers();
+
+ List<HandlerMetaData> preHandlers = config.getHandlers(epMetaData, HandlerType.PRE);
+ List<HandlerMetaData> postHandlers = config.getHandlers(epMetaData, HandlerType.POST);
+
+ addHandlers(preHandlers);
+ addHandlers(sepHandlers);
+ addHandlers(postHandlers);
+
+ log.debug("Added " + preHandlers.size() + " PRE handlers");
+ log.debug("Added " + sepHandlers.size() + " ENDPOINT handlers");
+ log.debug("Added " + postHandlers.size() + " POST handlers");
+ }
+
+ public EndpointMetaData getEndpointMetaData()
+ {
+ return epMetaData;
+ }
+
+ void validate()
+ {
+ for (HandlerMetaData handler : handlers)
+ handler.validate();
+ }
+
+ void initializeInternal()
+ {
+ // Initialize handlers
+ for (HandlerMetaData handler : handlers)
+ handler.eagerInitialize();
+ }
+
+ public CommonConfig getConfig()
+ {
+ return config;
+ }
+
+ void setConfig(CommonConfig config)
+ {
+ this.config = config;
+ }
+
+ public String getConfigName()
+ {
+ return configName;
+ }
+
+ public void setConfigName(String configName)
+ {
+ this.configName = configName;
+ }
+
+ public String getConfigFile()
+ {
+ return configFile;
+ }
+
+ public void setConfigFile(String configFile)
+ {
+ this.configFile = configFile;
+ }
+}
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2008-08-18 10:27:27 UTC (rev 8111)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -105,19 +105,14 @@
// The parent meta data.
private ServiceMetaData serviceMetaData;
- // The REQUIRED endpoint config
- private CommonConfig config;
-
+ // The REQUIRED configuration meta data.
+ private EndpointConfigMetaData configMetaData;
// The REQUIRED name
private QName portName;
// The REQUIRED binding id
private String bindingId;
// The REQUIRED name of the WSDL interface/portType
private QName portTypeName;
- // The REQUIRED config-name
- protected String configName;
- // The REQUIRED config-file
- protected String configFile;
// The endpoint interface name
private String seiName;
// The endpoint interface
@@ -138,10 +133,6 @@
private Type type;
// The list of service meta data
private List<OperationMetaData> operations = new ArrayList<OperationMetaData>();
- // The optional handlers
- private List<HandlerMetaData> handlers = new ArrayList<HandlerMetaData>();
- // True if the handlers are initialized
- private boolean handlersInitialized;
// Maps the java method to the operation meta data
private Map<Method, OperationMetaData> opMetaDataCache = new HashMap<Method, OperationMetaData>();
// All of the registered types
@@ -460,46 +451,37 @@
public void addHandlers(List<HandlerMetaData> configHandlers)
{
- handlers.addAll(configHandlers);
+ getEndpointConfigMetaData().addHandlers(configHandlers);
}
public void addHandler(HandlerMetaData handler)
{
- handler.setEndpointMetaData(this);
- handlers.add(handler);
+ getEndpointConfigMetaData().addHandler(handler);
}
public void clearHandlers()
{
- handlers.clear();
- handlersInitialized = false;
+ getEndpointConfigMetaData().clearHandlers();
}
public List<HandlerMetaData> getHandlerMetaData(HandlerType type)
{
- List<HandlerMetaData> typeHandlers = new ArrayList<HandlerMetaData>();
- for (HandlerMetaData hmd : handlers)
- {
- if (hmd.getHandlerType() == type || type == HandlerType.ALL)
- typeHandlers.add(hmd);
- }
- return typeHandlers;
+ return getEndpointConfigMetaData().getHandlerMetaData(type);
}
public boolean isHandlersInitialized()
{
- return handlersInitialized;
+ return getEndpointConfigMetaData().isHandlersInitialized();
}
public void setHandlersInitialized(boolean flag)
{
- this.handlersInitialized = flag;
+ getEndpointConfigMetaData().setHandlersInitialized(flag);
}
public void validate()
{
- for (HandlerMetaData handler : handlers)
- handler.validate();
+ getEndpointConfigMetaData().validate();
for (OperationMetaData opMetaData : operations)
opMetaData.validate();
@@ -518,9 +500,7 @@
// reset sei class
seiClass = null;
- // Initialize handlers
- for (HandlerMetaData handler : handlers)
- handler.eagerInitialize();
+ getEndpointConfigMetaData().initializeInternal();
eagerInitializeOperations();
eagerInitializeTypes();
@@ -623,21 +603,21 @@
AccessorFactoryCreator factoryCreator = paramMetaData.getAccessorFactoryCreator();
if (factoryCreator instanceof JAXBAccessorFactoryCreator)
useJAXBAccessorFactory = true;
-
+
types.add(paramMetaData.getJavaType());
}
-
+
ParameterMetaData retParam = opMetaData.getReturnParameter();
if (retParam != null)
{
AccessorFactoryCreator factoryCreator = retParam.getAccessorFactoryCreator();
if (factoryCreator instanceof JAXBAccessorFactoryCreator)
useJAXBAccessorFactory = true;
-
+
types.add(retParam.getJavaType());
}
}
-
+
// Create a JAXBContext for those types
JAXBRIContext jaxbCtx = null;
if (useJAXBAccessorFactory)
@@ -645,7 +625,7 @@
Class[] typeArr = new Class[types.size()];
jaxbCtx = (JAXBRIContext)JAXBContextFactory.newInstance().createContext(types.toArray(typeArr));
}
-
+
// Create the accessors using a shared JAXBContext
for (OperationMetaData opMetaData : operations)
{
@@ -653,7 +633,7 @@
{
createAccessor(paramMetaData, jaxbCtx);
}
-
+
ParameterMetaData retParam = opMetaData.getReturnParameter();
if (retParam != null)
createAccessor(retParam, jaxbCtx);
@@ -665,7 +645,7 @@
AccessorFactoryCreator factoryCreator = paramMetaData.getAccessorFactoryCreator();
if (factoryCreator instanceof JAXBAccessorFactoryCreator)
((JAXBAccessorFactoryCreator)factoryCreator).setJAXBContext(jaxbCtx);
-
+
if (paramMetaData.getWrappedParameters() != null)
{
AccessorFactory factory = factoryCreator.create(paramMetaData);
@@ -673,7 +653,7 @@
wParam.setAccessor(factory.create(wParam));
}
}
-
+
// ---------------------------------------------------------------
// Configuration provider impl
@@ -682,9 +662,7 @@
*/
public void configure(Configurable configurable)
{
- // Make sure we have a configuration
- if (config == null)
- initEndpointConfig();
+ CommonConfig config = getConfig();
// SOAPBinding configuration
if (configurable instanceof CommonBindingProvider)
@@ -722,19 +700,34 @@
public String getConfigFile()
{
- return configFile;
+ return getEndpointConfigMetaData().getConfigFile();
}
public String getConfigName()
{
- return configName;
+ return getEndpointConfigMetaData().getConfigName();
}
+ public EndpointConfigMetaData getEndpointConfigMetaData()
+ {
+ if (configMetaData == null)
+ configMetaData = new EndpointConfigMetaData(this);
+
+ return this.configMetaData;
+ }
+
public CommonConfig getConfig()
{
+ EndpointConfigMetaData ecmd = getEndpointConfigMetaData();
+ CommonConfig config = ecmd.getConfig();
+
// Make sure we have a configuration
if (config == null)
- initEndpointConfig();
+ {
+ // No base configuration.
+ initEndpointConfigMetaData(ecmd, null);
+ config = ecmd.getConfig();
+ }
return config;
}
@@ -754,45 +747,66 @@
if (configName == null)
throw new IllegalArgumentException("Config name cannot be null");
- if (configFile != null)
- this.configFile = configFile;
+ if (configFile == null)
+ {
+ configFile = getEndpointConfigMetaData().getConfigFile();
+ }
- if (configName.equals(this.configName) == false)
+ if (configName.equals(getEndpointConfigMetaData().getConfigName()) == false || configFile.equals(getEndpointConfigMetaData().getConfigFile()) == false)
{
- this.configName = configName;
+ log.debug("Reconfiguration forced, new config is '" + configName + "' file is '" + configFile + "'");
- log.debug("Reconfiguration forced, new config is '" + configName + "'");
- initEndpointConfig();
+ this.configMetaData = createEndpointConfigMetaData(configName, configFile);
configObservable.doNotify(configName);
}
}
- public void initEndpointConfig()
+ /**
+ * The factory method to create and initialise a new EndpointConfigMetaData, the current
+ * EndpointConfigMetaData will be used as the base to backup the RMMD.
+ *
+ * This method does not set the EndpointConfigMetaData as it can be used by clients to create
+ * a local configuration not stored in the EndpointMetaData.
+ */
+ protected EndpointConfigMetaData createEndpointConfigMetaData(String configName, String configFile)
{
- log.debug("Create new config [name=" + getConfigName() + ",file=" + getConfigFile() + "]");
- JBossWSConfigFactory factory = JBossWSConfigFactory.newInstance();
- config = factory.getConfig(getRootFile(), getConfigName(), getConfigFile());
+ EndpointConfigMetaData ecmd = new EndpointConfigMetaData(this);
+ ecmd.setConfigName(configName);
+ ecmd.setConfigFile(configFile);
- reconfigHandlerMetaData();
+ initEndpointConfigMetaData(ecmd, configMetaData);
+
+ return ecmd;
}
- private void reconfigHandlerMetaData()
+ public void initEndpointConfig()
{
- log.debug("Configure EndpointMetaData");
+ EndpointConfigMetaData ecmd = getEndpointConfigMetaData();
+ // At the time this method is called initialisation may have already happened
+ // always take the current ECMD as a base in case there is anything to backup.
+ initEndpointConfigMetaData(ecmd, ecmd);
+ }
- List<HandlerMetaData> sepHandlers = getHandlerMetaData(HandlerType.ENDPOINT);
- clearHandlers();
+ /**
+ * Initialise the toInitialise EndpointConfigMeta but first backup the RM Meta Data from
+ * the base EndpointConfigMetaData.
+ *
+ * @param toInitialise - The EndpointConfigMetaData to initialise.
+ * @param base - The base EndpointConfigMetaData to take the RMMD from.
+ */
+ private void initEndpointConfigMetaData(EndpointConfigMetaData toInitialise, EndpointConfigMetaData base)
+ {
+ String configName = toInitialise.getConfigName();
+ String configFile = toInitialise.getConfigFile();
- List<HandlerMetaData> preHandlers = config.getHandlers(this, HandlerType.PRE);
- List<HandlerMetaData> postHandlers = config.getHandlers(this, HandlerType.POST);
+ log.debug("Create new config [name=" + configName + ",file=" + configFile + "]");
- addHandlers(preHandlers);
- addHandlers(sepHandlers);
- addHandlers(postHandlers);
+ JBossWSConfigFactory factory = JBossWSConfigFactory.newInstance();
- log.debug("Added " + preHandlers.size() + " PRE handlers");
- log.debug("Added " + sepHandlers.size() + " ENDPOINT handlers");
- log.debug("Added " + postHandlers.size() + " POST handlers");
+ CommonConfig config = factory.getConfig(getRootFile(), configName, configFile);
+ toInitialise.setConfig(config);
+
+ toInitialise.configHandlerMetaData();
}
public List<Class> getRegisteredTypes()
@@ -813,15 +827,15 @@
public synchronized void addObserver(Observer o)
{
- observer.add( new WeakReference(o));
+ observer.add(new WeakReference(o));
}
public synchronized void deleteObserver(Observer o)
{
- for(WeakReference<Observer> w : observer)
+ for (WeakReference<Observer> w : observer)
{
Observer tmp = w.get();
- if(tmp.equals(o))
+ if (tmp.equals(o))
{
observer.remove(o);
break;
@@ -837,9 +851,9 @@
public void notifyObservers(Object arg)
{
- if(hasChanged())
+ if (hasChanged())
{
- for(WeakReference<Observer> w : observer)
+ for (WeakReference<Observer> w : observer)
{
Observer tmp = w.get();
tmp.update(this, arg);
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java 2008-08-18 10:27:27 UTC (rev 8111)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/metadata/umdm/ServerEndpointMetaData.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -77,12 +77,17 @@
{
super(service, portName, portTypeName, type);
this.endpoint = endpoint;
-
- super.configName = ConfigurationProvider.DEFAULT_ENDPOINT_CONFIG_NAME;
+
+ String configName = ConfigurationProvider.DEFAULT_ENDPOINT_CONFIG_NAME;
+ String configFile;
if (type == Type.JAXRPC)
configFile = ConfigurationProvider.DEFAULT_JAXRPC_ENDPOINT_CONFIG_FILE;
else
configFile = ConfigurationProvider.DEFAULT_JAXWS_ENDPOINT_CONFIG_FILE;
+
+ EndpointConfigMetaData ecmd = getEndpointConfigMetaData();
+ ecmd.setConfigName(configName);
+ ecmd.setConfigFile(configFile);
}
public Endpoint getEndpoint()
@@ -202,7 +207,7 @@
{
if (endpoint == null)
throw new IllegalStateException("Endpoint not available");
-
+
endpoint.setAddress(endpointAddress);
}
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/tools/metadata/ToolsEndpointMetaData.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/tools/metadata/ToolsEndpointMetaData.java 2008-08-18 10:27:27 UTC (rev 8111)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/main/java/org/jboss/ws/tools/metadata/ToolsEndpointMetaData.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -24,6 +24,7 @@
// $Id$
import org.jboss.ws.metadata.config.ConfigurationProvider;
+import org.jboss.ws.metadata.umdm.EndpointConfigMetaData;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.ServiceMetaData;
@@ -42,8 +43,10 @@
public ToolsEndpointMetaData(ServiceMetaData service, QName portName, QName portTypeName)
{
super(service, portName, portTypeName, Type.JAXRPC);
- super.configName = ConfigurationProvider.DEFAULT_CLIENT_CONFIG_NAME;
- super.configFile = ConfigurationProvider.DEFAULT_JAXRPC_CLIENT_CONFIG_FILE;
+
+ EndpointConfigMetaData ecmd = getEndpointConfigMetaData();
+ ecmd.setConfigFile(ConfigurationProvider.DEFAULT_JAXRPC_CLIENT_CONFIG_FILE);
+ ecmd.setConfigName(ConfigurationProvider.DEFAULT_CLIENT_CONFIG_NAME);
}
public String getEndpointAddress()
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187 (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2187)
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/JBWS2187TestCase.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2187/JBWS2187TestCase.java 2008-07-21 10:50:31 UTC (rev 7871)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/JBWS2187TestCase.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -1,121 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2187;
-
-import java.io.File;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import junit.framework.Test;
-
-import org.jboss.ws.core.StubExt;
-import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.wsf.test.JBossWSTestSetup;
-
-/**
- * [JBWS-2187] Handler Chain Management Prevents Service Re-Use
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 18th July 2008
- * @see https://jira.jboss.org/jira/browse/JBWS-2187
- */
-public class JBWS2187TestCase extends JBossWSTest
-{
-
- public static Test suite() throws Exception
- {
- return new JBossWSTestSetup(JBWS2187TestCase.class, "jaxws-jbws2187.war");
- }
-
- public void testSetBothPorts() throws Exception
- {
- Service service = getService();
- TestEndpoint original = service.getPort(TestEndpoint.class);
-
- setConfigName(original);
- performTest(original, 1);
-
- TestEndpoint subsequent = service.getPort(TestEndpoint.class);
-
- setConfigName(subsequent);
- performTest(subsequent, 1);
-
- performTest(original, 1);
- }
-
- public void testSetFirstPort() throws Exception
- {
- Service service = getService();
- TestEndpoint original = service.getPort(TestEndpoint.class);
-
- setConfigName(original);
- performTest(original, 1);
-
- TestEndpoint subsequent = service.getPort(TestEndpoint.class);
-
- //setConfigName(subsequent);
- performTest(subsequent, 0);
-
- performTest(original, 1);
- }
-
- public void testSetSecondPort() throws Exception
- {
- Service service = getService();
- TestEndpoint original = service.getPort(TestEndpoint.class);
-
- //setConfigName(original);
- performTest(original, 0);
-
- TestEndpoint subsequent = service.getPort(TestEndpoint.class);
-
- setConfigName(subsequent);
- performTest(subsequent, 1);
-
- performTest(original, 0);
- }
-
- void performTest(TestEndpoint port, int expected) throws Exception
- {
- TestHandler.clear();
- assertEquals("Av it", port.echo("Av it"));
- assertEquals("Call Count", expected, TestHandler.getCallCount());
- }
-
- void setConfigName(TestEndpoint port)
- {
- File config = new File("resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml");
- ((StubExt)port).setConfigName("JBWS2187 Config", config.getAbsolutePath());
- }
-
- Service getService() throws Exception
- {
- URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws2187?wsdl");
- QName serviceName = new QName("http://ws.jboss.org/jbws2187", "TestService");
-
- Service service = Service.create(wsdlURL, serviceName);
-
- return service;
- }
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/JBWS2187TestCase.java (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2187/JBWS2187TestCase.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/JBWS2187TestCase.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/JBWS2187TestCase.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -0,0 +1,121 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2187;
+
+import java.io.File;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.ws.core.StubExt;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-2187] Handler Chain Management Prevents Service Re-Use
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 18th July 2008
+ * @see https://jira.jboss.org/jira/browse/JBWS-2187
+ */
+public class JBWS2187TestCase extends JBossWSTest
+{
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2187TestCase.class, "jaxws-jbws2187.war");
+ }
+
+ public void testSetBothPorts() throws Exception
+ {
+ Service service = getService();
+ TestEndpoint original = service.getPort(TestEndpoint.class);
+
+ setConfigName(original);
+ performTest(original, 1);
+
+ TestEndpoint subsequent = service.getPort(TestEndpoint.class);
+
+ setConfigName(subsequent);
+ performTest(subsequent, 1);
+
+ performTest(original, 1);
+ }
+
+ public void testSetFirstPort() throws Exception
+ {
+ Service service = getService();
+ TestEndpoint original = service.getPort(TestEndpoint.class);
+
+ setConfigName(original);
+ performTest(original, 1);
+
+ TestEndpoint subsequent = service.getPort(TestEndpoint.class);
+
+ //setConfigName(subsequent);
+ performTest(subsequent, 0);
+
+ performTest(original, 1);
+ }
+
+ public void testSetSecondPort() throws Exception
+ {
+ Service service = getService();
+ TestEndpoint original = service.getPort(TestEndpoint.class);
+
+ //setConfigName(original);
+ performTest(original, 0);
+
+ TestEndpoint subsequent = service.getPort(TestEndpoint.class);
+
+ setConfigName(subsequent);
+ performTest(subsequent, 1);
+
+ performTest(original, 0);
+ }
+
+ void performTest(TestEndpoint port, int expected) throws Exception
+ {
+ TestHandler.clear();
+ assertEquals("Av it", port.echo("Av it"));
+ assertEquals("Call Count", expected, TestHandler.getCallCount());
+ }
+
+ void setConfigName(TestEndpoint port)
+ {
+ File config = new File("resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml");
+ ((StubExt)port).setConfigName("JBWS2187 Config", config.getAbsolutePath());
+ }
+
+ Service getService() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws2187?wsdl");
+ QName serviceName = new QName("http://ws.jboss.org/jbws2187", "TestService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+
+ return service;
+ }
+}
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.java 2008-07-21 10:50:31 UTC (rev 7871)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2187;
-
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-/**
- * [JBWS-2187] Handler Chain Management Prevents Service Re-Use
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 18th July 2008
- * @see https://jira.jboss.org/jira/browse/JBWS-2187
- */
-@WebService(targetNamespace = "http://ws.jboss.org/jbws2187")
-@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL)
-public interface TestEndpoint
-{
-
- public String echo(final String message);
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.java (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpoint.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2187;
+
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * [JBWS-2187] Handler Chain Management Prevents Service Re-Use
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 18th July 2008
+ * @see https://jira.jboss.org/jira/browse/JBWS-2187
+ */
+@WebService(targetNamespace = "http://ws.jboss.org/jbws2187")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL)
+public interface TestEndpoint
+{
+
+ public String echo(final String message);
+
+}
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.java 2008-07-21 10:50:31 UTC (rev 7871)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -1,42 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2187;
-
-import javax.jws.WebService;
-
-/**
- * [JBWS-2187] Handler Chain Management Prevents Service Re-Use
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 18th July 2008
- * @see https://jira.jboss.org/jira/browse/JBWS-2187
- */
-@WebService(name = "TestEndpoint", targetNamespace = "http://ws.jboss.org/jbws2187", serviceName = "TestService")
-public class TestEndpointImpl implements TestEndpoint
-{
-
- public String echo(String message)
- {
- return message;
- }
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.java (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestEndpointImpl.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2187;
+
+import javax.jws.WebService;
+
+/**
+ * [JBWS-2187] Handler Chain Management Prevents Service Re-Use
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 18th July 2008
+ * @see https://jira.jboss.org/jira/browse/JBWS-2187
+ */
+@WebService(name = "TestEndpoint", targetNamespace = "http://ws.jboss.org/jbws2187", serviceName = "TestService")
+public class TestEndpointImpl implements TestEndpoint
+{
+
+ public String echo(String message)
+ {
+ return message;
+ }
+
+}
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestHandler.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestHandler.java 2008-07-21 10:50:31 UTC (rev 7871)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestHandler.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2187;
-
-import javax.xml.ws.handler.MessageContext;
-
-import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
-
-/**
- * [JBWS-2187] Handler Chain Management Prevents Service Re-Use
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 18th July 2008
- * @see https://jira.jboss.org/jira/browse/JBWS-2187
- */
-public class TestHandler extends GenericSOAPHandler
-{
-
- private static int callCount = 0;
-
- @Override
- protected boolean handleOutbound(MessageContext msgContext)
- {
- callCount++;
- return true;
- }
-
- public static int getCallCount()
- {
- return callCount;
- }
-
- public static void clear()
- {
- callCount = 0;
- }
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestHandler.java (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestHandler.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestHandler.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/java/org/jboss/test/ws/jaxws/jbws2187/TestHandler.java 2008-08-18 10:54:25 UTC (rev 8112)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2187;
+
+import javax.xml.ws.handler.MessageContext;
+
+import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
+
+/**
+ * [JBWS-2187] Handler Chain Management Prevents Service Re-Use
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 18th July 2008
+ * @see https://jira.jboss.org/jira/browse/JBWS-2187
+ */
+public class TestHandler extends GenericSOAPHandler
+{
+
+ private static int callCount = 0;
+
+ @Override
+ protected boolean handleOutbound(MessageContext msgContext)
+ {
+ callCount++;
+ return true;
+ }
+
+ public static int getCallCount()
+ {
+ return callCount;
+ }
+
+ public static void clear()
+ {
+ callCount = 0;
+ }
+
+}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187 (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2187)
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2187/META-INF)
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml 2008-07-21 10:50:31 UTC (rev 7871)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml 2008-08-18 10:54:25 UTC (rev 8112)
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<jaxws-config
- xmlns="urn:jboss:jaxws-config:2.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:javaee="http://java.sun.com/xml/ns/javaee"
- xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
-
- <client-config>
- <config-name>JBWS2187 Config</config-name>
-
- <post-handler-chains>
- <javaee:handler-chain>
- <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
- <javaee:handler>
- <javaee:handler-name>JBWS2187 Test Handler</javaee:handler-name>
- <javaee:handler-class>org.jboss.test.ws.jaxws.jbws2187.TestHandler</javaee:handler-class>
- </javaee:handler>
- </javaee:handler-chain>
- </post-handler-chains>
- </client-config>
-
-
-</jaxws-config>
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/META-INF/jbws2187-client-config.xml 2008-08-18 10:54:25 UTC (rev 8112)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jaxws-config
+ xmlns="urn:jboss:jaxws-config:2.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
+
+ <client-config>
+ <config-name>JBWS2187 Config</config-name>
+
+ <post-handler-chains>
+ <javaee:handler-chain>
+ <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
+ <javaee:handler>
+ <javaee:handler-name>JBWS2187 Test Handler</javaee:handler-name>
+ <javaee:handler-class>org.jboss.test.ws.jaxws.jbws2187.TestHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+ </post-handler-chains>
+ </client-config>
+
+
+</jaxws-config>
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2187/WEB-INF)
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/jboss-web.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2187/WEB-INF/jboss-web.xml 2008-07-21 10:50:31 UTC (rev 7871)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/jboss-web.xml 2008-08-18 10:54:25 UTC (rev 8112)
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
-
-<jboss-web>
- <context-root>/jaxws-jbws2187</context-root>
-</jboss-web>
\ No newline at end of file
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/jboss-web.xml (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2187/WEB-INF/jboss-web.xml)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/jboss-web.xml (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/jboss-web.xml 2008-08-18 10:54:25 UTC (rev 8112)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-jbws2187</context-root>
+</jboss-web>
\ No newline at end of file
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/web.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2187/WEB-INF/web.xml 2008-07-21 10:50:31 UTC (rev 7871)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/web.xml 2008-08-18 10:54:25 UTC (rev 8112)
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
-
- <servlet>
- <servlet-name>TestEndpoint</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.jbws2187.TestEndpointImpl</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>TestEndpoint</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-
-</web-app>
\ No newline at end of file
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/web.xml (from rev 7871, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2187/WEB-INF/web.xml)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/web.xml (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/src/test/resources/jaxws/jbws2187/WEB-INF/web.xml 2008-08-18 10:54:25 UTC (rev 8112)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>TestEndpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2187.TestEndpointImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>TestEndpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
16 years, 4 months
JBossWS SVN: r8111 - stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-08-18 06:27:27 -0400 (Mon, 18 Aug 2008)
New Revision: 8111
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/version.properties
Log:
[JBPAPP-1084] Set the version.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/version.properties
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/version.properties 2008-08-18 09:57:57 UTC (rev 8110)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/version.properties 2008-08-18 10:27:27 UTC (rev 8111)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=2.0.1.SP2_CP03
-repository.id=2.0.1.SP2_CP03
+version.id=2.0.1.SP2_CP03_JBPAPP-1084
+repository.id=2.0.1.SP2_CP03_JBPAPP-1084
implementation.title=JBoss Web Services - Native
implementation.url=http://www.jboss.org/products/jbossws
16 years, 4 months
JBossWS SVN: r8110 - stack/native/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-08-18 05:57:57 -0400 (Mon, 18 Aug 2008)
New Revision: 8110
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084/
Log:
[JBPAPP-1084] Branch for patch.
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP03_JBPAPP-1084 (from rev 8109, stack/native/tags/jbossws-native-2.0.1.SP2_CP03)
16 years, 4 months
JBossWS SVN: r8109 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP: ant-import and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-08-15 11:05:15 -0400 (Fri, 15 Aug 2008)
New Revision: 8109
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-testsuite.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import/build-thirdparty.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/etc/component-info.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties
Log:
Further version corrections and build script formatting.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import/build-thirdparty.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import/build-thirdparty.xml 2008-08-15 12:57:01 UTC (rev 8108)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import/build-thirdparty.xml 2008-08-15 15:05:15 UTC (rev 8109)
@@ -126,47 +126,50 @@
<checksum file="${core.dir}/version.properties" fileext=".md5"/>
</target>
-
+
<target name="thirdparty-classpath" depends="thirdparty-get">
-
+
<!-- The compile classpath for jbossws core -->
- <path id="thirdparty.classpath">
- <!-- A stack MUST NOT have a compile time dependency on jbossws-framework.jar -->
- <pathelement location="${thirdparty.dir}/jbossws-common.jar"/>
- <pathelement location="${thirdparty.dir}/jbossws-spi.jar"/>
-
- <pathelement location="${thirdparty.dir}/ejb3.deployer/jboss-annotations-ejb3.jar"/>
- <pathelement location="${thirdparty.dir}/ejb3.deployer/jboss-ejb3x.jar"/>
- <pathelement location="${thirdparty.dir}/ant.jar"/>
- <pathelement location="${thirdparty.dir}/activation.jar"/>
- <pathelement location="${thirdparty.dir}/dom4j.jar"/>
- <pathelement location="${thirdparty.dir}/getopt.jar"/>
- <pathelement location="${thirdparty.dir}/javassist.jar"/>
- <pathelement location="${thirdparty.dir}/jaxb-api.jar"/>
- <pathelement location="${thirdparty.dir}/jaxb-impl.jar"/>
- <pathelement location="${thirdparty.dir}/jaxb-xjc.jar"/>
- <pathelement location="${thirdparty.dir}/jaxws-rt.jar"/>
- <pathelement location="${thirdparty.dir}/jaxws-tools.jar"/>
- <pathelement location="${thirdparty.dir}/jboss-common-core.jar"/>
- <pathelement location="${thirdparty.dir}/jboss-dependency.jar"/>
- <pathelement location="${thirdparty.dir}/jboss-j2ee.jar"/>
- <pathelement location="${thirdparty.dir}/jboss-logging-spi.jar"/>
- <pathelement location="${thirdparty.dir}/jboss-microcontainer.jar"/>
- <pathelement location="${thirdparty.dir}/jboss-remoting.jar"/>
- <pathelement location="${thirdparty.dir}/jboss-xml-binding.jar"/>
- <pathelement location="${thirdparty.dir}/jbosssx.jar"/>
- <pathelement location="${thirdparty.dir}/mail.jar"/>
- <pathelement location="${thirdparty.dir}/policy.jar"/>
- <pathelement location="${thirdparty.dir}/servlet-api.jar"/>
- <pathelement location="${thirdparty.dir}/stax-api.jar"/>
- <pathelement location="${thirdparty.dir}/wsdl4j.jar"/>
- <pathelement location="${thirdparty.dir}/wstx.jar"/>
- <pathelement location="${thirdparty.dir}/xalan.jar"/>
- <pathelement location="${thirdparty.dir}/xmlsec.jar"/>
- <pathelement location="${thirdparty.dir}/xercesImpl.jar"/>
- <pathelement location="${thirdparty.dir}/jboss-jaxb-intros.jar"/>
- </path>
+ <path id="thirdparty.classpath">
+ <!-- A stack MUST NOT have a compile time dependency on jbossws-framework.jar -->
+ <pathelement location="${thirdparty.dir}/jbossws-common.jar" />
+ <pathelement location="${thirdparty.dir}/jbossws-spi.jar" />
+ <pathelement
+ location="${thirdparty.dir}/ejb3.deployer/jboss-annotations-ejb3.jar" />
+ <pathelement
+ location="${thirdparty.dir}/ejb3.deployer/jboss-ejb3x.jar" />
+ <pathelement location="${thirdparty.dir}/ant.jar" />
+ <pathelement location="${thirdparty.dir}/activation.jar" />
+ <pathelement location="${thirdparty.dir}/dom4j.jar" />
+ <pathelement location="${thirdparty.dir}/getopt.jar" />
+ <pathelement location="${thirdparty.dir}/javassist.jar" />
+ <pathelement location="${thirdparty.dir}/jaxb-api.jar" />
+ <pathelement location="${thirdparty.dir}/jaxb-impl.jar" />
+ <pathelement location="${thirdparty.dir}/jaxb-xjc.jar" />
+ <pathelement location="${thirdparty.dir}/jaxws-rt.jar" />
+ <pathelement location="${thirdparty.dir}/jaxws-tools.jar" />
+ <pathelement location="${thirdparty.dir}/jboss-common-core.jar" />
+ <pathelement location="${thirdparty.dir}/jboss-dependency.jar" />
+ <pathelement location="${thirdparty.dir}/jboss-j2ee.jar" />
+ <pathelement location="${thirdparty.dir}/jboss-logging-spi.jar" />
+ <pathelement
+ location="${thirdparty.dir}/jboss-microcontainer.jar" />
+ <pathelement location="${thirdparty.dir}/jboss-remoting.jar" />
+ <pathelement location="${thirdparty.dir}/jboss-xml-binding.jar" />
+ <pathelement location="${thirdparty.dir}/jbosssx.jar" />
+ <pathelement location="${thirdparty.dir}/mail.jar" />
+ <pathelement location="${thirdparty.dir}/policy.jar" />
+ <pathelement location="${thirdparty.dir}/servlet-api.jar" />
+ <pathelement location="${thirdparty.dir}/stax-api.jar" />
+ <pathelement location="${thirdparty.dir}/wsdl4j.jar" />
+ <pathelement location="${thirdparty.dir}/wstx.jar" />
+ <pathelement location="${thirdparty.dir}/xalan.jar" />
+ <pathelement location="${thirdparty.dir}/xmlsec.jar" />
+ <pathelement location="${thirdparty.dir}/xercesImpl.jar" />
+ <pathelement location="${thirdparty.dir}/jboss-jaxb-intros.jar" />
+ </path>
+
</target>
</project>
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-testsuite.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-testsuite.xml 2008-08-15 12:57:01 UTC (rev 8108)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-testsuite.xml 2008-08-15 15:05:15 UTC (rev 8109)
@@ -10,218 +10,348 @@
<project>
- <property name="tests.output.dir" value="${core.dir}/output/tests"/>
-
- <import file="${core.dir}/src/test-framework/ant-import/build-testsuite.xml"/>
+ <property name="tests.output.dir" value="${core.dir}/output/tests" />
- <!-- Define excluded tests -->
- <property name="excludes-short-name" value="test-excludes-${jbossws.integration.target}.txt"/>
- <property name="excludesfile" value="${core.dir}/src/test/resources/test-excludes-${jbossws.integration.target}.txt"/>
-
- <property name="tests.dir" value="${core.dir}/src/test"/>
- <property name="tests.java.dir" value="${tests.dir}/java"/>
- <property name="tests.resources.dir" value="${tests.dir}/resources"/>
+ <import
+ file="${core.dir}/src/test-framework/ant-import/build-testsuite.xml" />
- <!--
- Init the various classpaths
- -->
- <target name="tests-init" depends="thirdparty-classpath,tests-classpath">
+ <!-- Define excluded tests -->
+ <property name="excludes-short-name"
+ value="test-excludes-${jbossws.integration.target}.txt" />
+ <property name="excludesfile"
+ value="${core.dir}/src/test/resources/test-excludes-${jbossws.integration.target}.txt" />
- <path id="ws.stack.classpath">
- <pathelement location="${core.dir}/thirdparty/jbossws-common.jar"/>
- <pathelement location="${core.dir}/thirdparty/jbossws-spi.jar"/>
- <pathelement location="${core.dir}/output/lib/jboss-jaxrpc.jar"/>
- <pathelement location="${core.dir}/output/lib/jboss-jaxws.jar"/>
- <pathelement location="${core.dir}/output/lib/jboss-saaj.jar"/>
- <pathelement location="${core.dir}/output/lib/jbossws-core.jar"/>
- <pathelement location="${core.dir}/output/lib/jbossws-client.jar"/>
- </path>
+ <property name="tests.dir" value="${core.dir}/src/test" />
+ <property name="tests.java.dir" value="${tests.dir}/java" />
+ <property name="tests.resources.dir" value="${tests.dir}/resources" />
+ <!--
+ Init the various classpaths
+ -->
+ <target name="tests-init"
+ depends="thirdparty-classpath,tests-classpath">
+
+ <path id="ws.stack.classpath">
+ <pathelement location="${core.dir}/thirdparty/jbossws-common.jar" />
+ <pathelement location="${core.dir}/thirdparty/jbossws-spi.jar" />
+ <pathelement location="${core.dir}/output/lib/jboss-jaxrpc.jar" />
+ <pathelement location="${core.dir}/output/lib/jboss-jaxws.jar" />
+ <pathelement location="${core.dir}/output/lib/jboss-saaj.jar" />
+ <pathelement location="${core.dir}/output/lib/jbossws-core.jar" />
+ <pathelement location="${core.dir}/output/lib/jbossws-client.jar" />
+ </path>
+
<path id="tests.extra.classpath">
- <pathelement location="${core.dir}/thirdparty/jbossws-framework.jar"/>
- <pathelement location="${core.dir}/thirdparty/jaxws-tools.jar"/>
- <pathelement location="${core.dir}/thirdparty/policy.jar"/>
- <pathelement location="${core.dir}/thirdparty/qdox.jar"/>
- <pathelement location="${core.dir}/thirdparty/stax-api.jar"/>
- <pathelement location="${core.dir}/thirdparty/wsdl4j.jar"/>
- <pathelement location="${core.dir}/thirdparty/wstx.jar"/>
- <pathelement location="${core.dir}/thirdparty/xmlunit.jar"/>
- <pathelement location="${core.dir}/thirdparty/jboss-jaxb-intros.jar"/>
+ <pathelement
+ location="${core.dir}/thirdparty/jbossws-framework.jar" />
+ <pathelement location="${core.dir}/thirdparty/jaxws-tools.jar" />
+ <pathelement location="${core.dir}/thirdparty/policy.jar" />
+ <pathelement location="${core.dir}/thirdparty/qdox.jar" />
+ <pathelement location="${core.dir}/thirdparty/stax-api.jar" />
+ <pathelement location="${core.dir}/thirdparty/wsdl4j.jar" />
+ <pathelement location="${core.dir}/thirdparty/wstx.jar" />
+ <pathelement location="${core.dir}/thirdparty/xmlunit.jar" />
+ <pathelement
+ location="${core.dir}/thirdparty/jboss-jaxb-intros.jar" />
</path>
<!-- The jBPM BPEL classpath -->
- <path id="jbpm.bpel.classpath">
- <path refid="ws.stack.classpath"/>
- <pathelement location="${core.dir}/thirdparty/jbpm-bpel"/> <!-- jbpm.cfg.xml -->
- <pathelement location="${core.dir}/thirdparty/jbpm-bpel/jbpm-bpel.jar" />
- <pathelement location="${core.dir}/thirdparty/jbpm-bpel/jbpm-jpdl.jar" />
- <pathelement location="${core.dir}/thirdparty/jbpm-bpel/commons-lang.jar" />
- <pathelement location="${core.dir}/thirdparty/commons-collections.jar"/>
- <pathelement location="${core.dir}/thirdparty/commons-logging.jar"/>
- <pathelement location="${core.dir}/thirdparty/dom4j.jar"/>
- <pathelement location="${core.dir}/thirdparty/jaxen.jar"/>
- <pathelement location="${core.dir}/thirdparty/wsdl4j.jar"/>
- <pathelement location="${core.dir}/thirdparty/jboss-logging-log4j.jar"/>
- <!--
- <pathelement location="${core.dir}/thirdparty/log4j.jar"/>
- <pathelement location="${tests.etc.dir}"/>
- -->
- </path>
+ <path id="jbpm.bpel.classpath">
+ <path refid="ws.stack.classpath" />
+ <pathelement location="${core.dir}/thirdparty/jbpm-bpel" /><!-- jbpm.cfg.xml -->
+ <pathelement
+ location="${core.dir}/thirdparty/jbpm-bpel/jbpm-bpel.jar" />
+ <pathelement
+ location="${core.dir}/thirdparty/jbpm-bpel/jbpm-jpdl.jar" />
+ <pathelement
+ location="${core.dir}/thirdparty/jbpm-bpel/commons-lang.jar" />
+ <pathelement
+ location="${core.dir}/thirdparty/commons-collections.jar" />
+ <pathelement
+ location="${core.dir}/thirdparty/commons-logging.jar" />
+ <pathelement location="${core.dir}/thirdparty/dom4j.jar" />
+ <pathelement location="${core.dir}/thirdparty/jaxen.jar" />
+ <pathelement location="${core.dir}/thirdparty/wsdl4j.jar" />
+ <pathelement
+ location="${core.dir}/thirdparty/jboss-logging-log4j.jar" />
+ <!--
+ <pathelement location="${core.dir}/thirdparty/log4j.jar"/>
+ <pathelement location="${tests.etc.dir}"/>
+ -->
+ </path>
- </target>
+ </target>
- <!-- ================================================================== -->
- <!-- Generating sources -->
- <!-- ================================================================== -->
+ <!-- ================================================================== -->
+ <!-- Generating sources -->
+ <!-- ================================================================== -->
- <target name="wsconsume" depends="tests-init" description="Consume JAX-WS contracts">
+ <target name="wsconsume" depends="tests-init"
+ description="Consume JAX-WS contracts">
- <!-- Define the JAX-WS wsconsume task -->
- <taskdef name="wsconsume" classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask">
- <classpath refid="tests.client.classpath"/>
+ <!-- Define the JAX-WS wsconsume task -->
+ <taskdef name="wsconsume"
+ classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask">
+ <classpath refid="tests.client.classpath" />
</taskdef>
- <wsconsume wsdl="${tests.resources.dir}/benchmark/jaxws/doclit/WEB-INF/wsdl/BenchmarkWebService.wsdl" package="org.jboss.test.ws.benchmark.jaxws.doclit" sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true" verbose="false"/>
- <wsconsume wsdl="${tests.resources.dir}/interop/soapwsdl/BaseDataTypesDocLitB/WEB-INF/wsdl/service.wsdl" package="org.jboss.test.ws.interop.soapwsdl.basedoclitb" sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true" verbose="false"/>
- <wsconsume wsdl="${tests.resources.dir}/interop/soapwsdl/BaseDataTypesDocLitW/WEB-INF/wsdl/service.wsdl" package="org.jboss.test.ws.interop.soapwsdl.basedoclitw" sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true" verbose="false"/>
- <wsconsume wsdl="${tests.resources.dir}/interop/soapwsdl/BaseDataTypesRpcLit/WEB-INF/wsdl/service.wsdl" package="org.jboss.test.ws.interop.soapwsdl.baserpclit" sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true" verbose="false"/>
- <wsconsume wsdl="${tests.resources.dir}/jaxws/complex/META-INF/wsdl/RegistrationService.wsdl" package="org.jboss.test.ws.jaxws.complex" sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true" verbose="false"/>
- <wsconsume wsdl="${tests.resources.dir}/jaxws/holder/META-INF/wsdl/HolderService.wsdl" package="org.jboss.test.ws.jaxws.holder" sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true" verbose="false"/>
- <wsconsume wsdl="${tests.resources.dir}/jaxws/samples/wssecuritypolicy/WEB-INF/wsdl/HelloService.wsdl" package="org.jboss.test.ws.jaxws.samples.wssecuritypolicy" sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true" verbose="false"/>
- <wsconsume wsdl="${tests.resources.dir}/jaxws/samples/wssecurityAnnotatedpolicy/META-INF/wsdl/HelloService.wsdl" package="org.jboss.test.ws.jaxws.samples.wssecurityAnnotatedpolicy" sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true" verbose="false"/>
- <wsconsume wsdl="${tests.resources.dir}/jaxws/samples/wssecurity/META-INF/wsdl/HelloService.wsdl" package="org.jboss.test.ws.jaxws.samples.wssecurity" sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true" verbose="false"/>
- </target>
+ <wsconsume
+ wsdl="${tests.resources.dir}/benchmark/jaxws/doclit/WEB-INF/wsdl/BenchmarkWebService.wsdl"
+ package="org.jboss.test.ws.benchmark.jaxws.doclit"
+ sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true"
+ verbose="false" />
+ <wsconsume
+ wsdl="${tests.resources.dir}/interop/soapwsdl/BaseDataTypesDocLitB/WEB-INF/wsdl/service.wsdl"
+ package="org.jboss.test.ws.interop.soapwsdl.basedoclitb"
+ sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true"
+ verbose="false" />
+ <wsconsume
+ wsdl="${tests.resources.dir}/interop/soapwsdl/BaseDataTypesDocLitW/WEB-INF/wsdl/service.wsdl"
+ package="org.jboss.test.ws.interop.soapwsdl.basedoclitw"
+ sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true"
+ verbose="false" />
+ <wsconsume
+ wsdl="${tests.resources.dir}/interop/soapwsdl/BaseDataTypesRpcLit/WEB-INF/wsdl/service.wsdl"
+ package="org.jboss.test.ws.interop.soapwsdl.baserpclit"
+ sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true"
+ verbose="false" />
+ <wsconsume
+ wsdl="${tests.resources.dir}/jaxws/complex/META-INF/wsdl/RegistrationService.wsdl"
+ package="org.jboss.test.ws.jaxws.complex"
+ sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true"
+ verbose="false" />
+ <wsconsume
+ wsdl="${tests.resources.dir}/jaxws/holder/META-INF/wsdl/HolderService.wsdl"
+ package="org.jboss.test.ws.jaxws.holder"
+ sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true"
+ verbose="false" />
+ <wsconsume
+ wsdl="${tests.resources.dir}/jaxws/samples/wssecuritypolicy/WEB-INF/wsdl/HelloService.wsdl"
+ package="org.jboss.test.ws.jaxws.samples.wssecuritypolicy"
+ sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true"
+ verbose="false" />
+ <wsconsume
+ wsdl="${tests.resources.dir}/jaxws/samples/wssecurityAnnotatedpolicy/META-INF/wsdl/HelloService.wsdl"
+ package="org.jboss.test.ws.jaxws.samples.wssecurityAnnotatedpolicy"
+ sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true"
+ verbose="false" />
+ <wsconsume
+ wsdl="${tests.resources.dir}/jaxws/samples/wssecurity/META-INF/wsdl/HelloService.wsdl"
+ package="org.jboss.test.ws.jaxws.samples.wssecurity"
+ sourcedestdir="${tests.output.dir}/wsconsume/java" keep="true"
+ verbose="false" />
+ </target>
- <!--
- Generate BPEL sources
- -->
- <target name="servicegen" depends="tests-compile" description="Generate the BPEL resources.">
- <!-- create jbpm process archives -->
- <mkdir dir="${tests.output.dir}/libs"/>
- <zip destfile="${tests.output.dir}/libs/jaxrpc-samples-wsbpel-hello-process.zip">
- <fileset dir="${tests.resources.dir}/jaxrpc/samples/wsbpel/hello/bpel" />
- </zip>
- <!-- Copy the BPEL sar -->
- <copy file="${core.dir}/thirdparty/jbpm-bpel.sar" todir="${tests.output.dir}/libs"/>
+ <!--
+ Generate BPEL sources
+ -->
+ <target name="servicegen" depends="tests-compile"
+ description="Generate the BPEL resources.">
+ <!-- create jbpm process archives -->
+ <mkdir dir="${tests.output.dir}/libs" />
+ <zip
+ destfile="${tests.output.dir}/libs/jaxrpc-samples-wsbpel-hello-process.zip">
+ <fileset
+ dir="${tests.resources.dir}/jaxrpc/samples/wsbpel/hello/bpel" />
+ </zip>
+ <!-- Copy the BPEL sar -->
+ <copy file="${core.dir}/thirdparty/jbpm-bpel.sar"
+ todir="${tests.output.dir}/libs" />
- <!-- generate wsdl binding and service definitions for bpel processes -->
- <taskdef name="servicegen" classname="org.jbpm.bpel.ant.ServiceGeneratorTask">
- <classpath refid="jbpm.bpel.classpath"/>
- </taskdef>
- <servicegen processfile="${tests.output.dir}/libs/jaxrpc-samples-wsbpel-hello-process.zip"
- outputdir="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/wsdl"
- bindingfile="hello-binding-.wsdl" servicefile="hello-service.wsdl" />
- </target>
+ <!-- generate wsdl binding and service definitions for bpel processes -->
+ <taskdef name="servicegen"
+ classname="org.jbpm.bpel.ant.ServiceGeneratorTask">
+ <classpath refid="jbpm.bpel.classpath" />
+ </taskdef>
+ <servicegen
+ processfile="${tests.output.dir}/libs/jaxrpc-samples-wsbpel-hello-process.zip"
+ outputdir="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/wsdl"
+ bindingfile="hello-binding-.wsdl"
+ servicefile="hello-service.wsdl" />
+ </target>
- <!--
- Generate JAX-RPC sources
- -->
- <target name="wstools" depends="tests-compile" description="Generate the JAX-RPC artifacts.">
+ <!--
+ Generate JAX-RPC sources
+ -->
+ <target name="wstools" depends="tests-compile"
+ description="Generate the JAX-RPC artifacts.">
- <!-- Define the JAX-RPC tools task -->
- <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
- <classpath refid="ws.stack.classpath"/>
- <classpath refid="thirdparty.classpath"/>
- <classpath location="${core.dir}/thirdparty/concurrent.jar"/>
- <classpath location="${tests.output.dir}/classes"/>
- <classpath location="${tests.output.dir}"/>
- </taskdef>
+ <!-- Define the JAX-RPC tools task -->
+ <taskdef name="wstools"
+ classname="org.jboss.ws.tools.ant.wstools">
+ <classpath refid="ws.stack.classpath" />
+ <classpath refid="thirdparty.classpath" />
+ <classpath location="${core.dir}/thirdparty/concurrent.jar" />
+ <classpath location="${tests.output.dir}/classes" />
+ <classpath location="${tests.output.dir}" />
+ </taskdef>
- <!-- Generate JAX-RPC artifacts -->
- <mkdir dir="${tests.output.dir}/wstools/java"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/docstyle/wrapped/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/docstyle/wrapped/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/docstyle/bare/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/docstyle/bare/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/dynamichandler/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/dynamichandler/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/exception/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/exception/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/handler/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/handler/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/holder/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/holder/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jmstransport/META-INF" config="${tests.resources.dir}/jaxrpc/samples/jmstransport/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jsr109ejb/doclit/META-INF" config="${tests.resources.dir}/jaxrpc/samples/jsr109ejb/doclit/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jsr109ejb/rpclit/META-INF" config="${tests.resources.dir}/jaxrpc/samples/jsr109ejb/rpclit/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jsr109pojo/doclit/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/jsr109pojo/doclit/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jsr109pojo/rpclit/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/jsr109pojo/rpclit/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/message/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/message/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/oneway/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/oneway/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/rpcstyle/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/rpcstyle/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/secureejb/META-INF" config="${tests.resources.dir}/jaxrpc/samples/secureejb/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/hello/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/wsaddr/hello/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/wsaddr/replyto/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/wsbpel/hello/wstools-config.xml"/>
- <wstools dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wssecurity/WEB-INF" config="${tests.resources.dir}/jaxrpc/samples/wssecurity/wstools-config.xml"/>
- <move todir="${tests.output.dir}/wstools/java">
- <fileset dir="${tests.output.dir}/wstools/resources/jaxrpc/samples/docstyle/wrapped/WEB-INF" includes="org/**"/>
- </move>
- <move todir="${tests.output.dir}/wstools/java">
- <fileset dir="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/hello/WEB-INF" includes="org/**"/>
- </move>
- <move todir="${tests.output.dir}/wstools/java">
- <fileset dir="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF" includes="org/**"/>
- </move>
+ <!-- Generate JAX-RPC artifacts -->
+ <mkdir dir="${tests.output.dir}/wstools/java" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/docstyle/wrapped/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/docstyle/wrapped/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/docstyle/bare/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/docstyle/bare/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/dynamichandler/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/dynamichandler/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/exception/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/exception/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/handler/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/handler/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/holder/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/holder/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jmstransport/META-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/jmstransport/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jsr109ejb/doclit/META-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/jsr109ejb/doclit/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jsr109ejb/rpclit/META-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/jsr109ejb/rpclit/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jsr109pojo/doclit/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/jsr109pojo/doclit/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/jsr109pojo/rpclit/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/jsr109pojo/rpclit/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/message/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/message/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/oneway/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/oneway/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/rpcstyle/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/rpcstyle/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/secureejb/META-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/secureejb/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/hello/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/wsaddr/hello/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/wsaddr/replyto/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/wsbpel/hello/wstools-config.xml" />
+ <wstools
+ dest="${tests.output.dir}/wstools/resources/jaxrpc/samples/wssecurity/WEB-INF"
+ config="${tests.resources.dir}/jaxrpc/samples/wssecurity/wstools-config.xml" />
+ <move todir="${tests.output.dir}/wstools/java">
+ <fileset
+ dir="${tests.output.dir}/wstools/resources/jaxrpc/samples/docstyle/wrapped/WEB-INF"
+ includes="org/**" />
+ </move>
+ <move todir="${tests.output.dir}/wstools/java">
+ <fileset
+ dir="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/hello/WEB-INF"
+ includes="org/**" />
+ </move>
+ <move todir="${tests.output.dir}/wstools/java">
+ <fileset
+ dir="${tests.output.dir}/wstools/resources/jaxrpc/samples/wsaddr/replyto/WEB-INF"
+ includes="org/**" />
+ </move>
- <!-- Copy generated resources -->
- <copy todir="${tests.output.dir}/resources">
- <fileset dir="${tests.output.dir}/wstools/resources">
- <include name="**/*.wsdl"/>
- <include name="**/*.xml"/>
- </fileset>
- </copy>
- <!-- Copy resources that cannot (yet) be generated -->
- <copy todir="${tests.output.dir}/resources/jaxrpc/samples" overwrite="true">
- <fileset dir="${tests.resources.dir}/jaxrpc/samples-override"/>
- <filterset>
- <filter token="jboss.bind.address" value="${node0}"/>
- </filterset>
- </copy>
- </target>
+ <!-- Copy generated resources -->
+ <copy todir="${tests.output.dir}/resources">
+ <fileset dir="${tests.output.dir}/wstools/resources">
+ <include name="**/*.wsdl" />
+ <include name="**/*.xml" />
+ </fileset>
+ </copy>
+ <!-- Copy resources that cannot (yet) be generated -->
+ <copy todir="${tests.output.dir}/resources/jaxrpc/samples"
+ overwrite="true">
+ <fileset dir="${tests.resources.dir}/jaxrpc/samples-override" />
+ <filterset>
+ <filter token="jboss.bind.address" value="${node0}" />
+ </filterset>
+ </copy>
+ </target>
- <!--
- Generate JAX-WS sources
- -->
- <target name="wsprovide" depends="tests-compile" description="Provide the JAX-WS contracts.">
+ <!--
+ Generate JAX-WS sources
+ -->
+ <target name="wsprovide" depends="tests-compile"
+ description="Provide the JAX-WS contracts.">
- <!-- Define the JAX-WS wsprovide task -->
- <taskdef name="wsprovide" classname="org.jboss.wsf.spi.tools.ant.WSProvideTask">
- <classpath refid="tests.client.classpath"/>
- <classpath location="${tests.output.dir}/classes"/>
- <classpath location="${tests.output.dir}/resources/jaxws/samples/wssecurityAnnotatedpolicy"/>
- </taskdef>
+ <!-- Define the JAX-WS wsprovide task -->
+ <taskdef name="wsprovide"
+ classname="org.jboss.wsf.spi.tools.ant.WSProvideTask">
+ <classpath refid="tests.client.classpath" />
+ <classpath location="${tests.output.dir}/classes" />
+ <classpath
+ location="${tests.output.dir}/resources/jaxws/samples/wssecurityAnnotatedpolicy" />
+ </taskdef>
- <wsprovide resourcedestdir="${tests.output.dir}/wsprovide/resources/jaxws/samples/wssecurity" genwsdl="true" sei="org.jboss.test.ws.jaxws.samples.wssecurity.HelloJavaBean" verbose="true"/>
- <wsprovide resourcedestdir="${tests.output.dir}/wsprovide/resources/jaxws/samples/wssecurityAnnotatedpolicy" genwsdl="true" sei="org.jboss.test.ws.jaxws.samples.wssecurityAnnotatedpolicy.HelloJavaBean"/>
- </target>
+ <wsprovide
+ resourcedestdir="${tests.output.dir}/wsprovide/resources/jaxws/samples/wssecurity"
+ genwsdl="true"
+ sei="org.jboss.test.ws.jaxws.samples.wssecurity.HelloJavaBean"
+ verbose="true" />
+ <wsprovide
+ resourcedestdir="${tests.output.dir}/wsprovide/resources/jaxws/samples/wssecurityAnnotatedpolicy"
+ genwsdl="true"
+ sei="org.jboss.test.ws.jaxws.samples.wssecurityAnnotatedpolicy.HelloJavaBean" />
+ </target>
- <target name="tests-compile-generated-resources" depends="servicegen,wstools,wsprovide">
- <macro-compile-classes srcdir="${tests.output.dir}/wstools/java" excludesfile="${excludesfile}"/>
- </target>
+ <target name="tests-compile-generated-resources"
+ depends="servicegen,wstools,wsprovide">
+ <macro-compile-classes srcdir="${tests.output.dir}/wstools/java"
+ excludesfile="${excludesfile}" />
+ </target>
- <!-- ================================================================== -->
- <!-- Compiling -->
- <!-- ================================================================== -->
+ <!-- ================================================================== -->
+ <!-- Compiling -->
+ <!-- ================================================================== -->
- <target name="tests-compile" depends="wsconsume,tests-classpath" description="Compile sources">
- <macro-compile-classes srcdir="${tests.output.dir}/wsconsume/java" excludesfile="${excludesfile}"/>
- <macro-compile-classes srcdir="${core.dir}/src/test-framework/java" excludesfile="${excludesfile}"/>
- <macro-compile-classes srcdir="${core.dir}/src/test/java" excludesfile="${excludesfile}"/>
- </target>
+ <target name="tests-compile" depends="wsconsume,tests-classpath"
+ description="Compile sources">
+ <macro-compile-classes srcdir="${tests.output.dir}/wsconsume/java"
+ excludesfile="${excludesfile}" />
+ <macro-compile-classes srcdir="${core.dir}/src/test-framework/java"
+ excludesfile="${excludesfile}" />
+ <macro-compile-classes srcdir="${core.dir}/src/test/java"
+ excludesfile="${excludesfile}" />
+ </target>
- <!-- ================================================================== -->
- <!-- Building -->
- <!-- ================================================================== -->
+ <!-- ================================================================== -->
+ <!-- Building -->
+ <!-- ================================================================== -->
- <!-- Copy resources -->
- <target name="tests-copy-resources" depends="tests-init" description="Copy the deployment resources.">
- <macro-copy-resources srcdir="${core.dir}/src/test-framework"/>
- <macro-copy-resources srcdir="${core.dir}/src/test"/>
- </target>
+ <!-- Copy resources -->
+ <target name="tests-copy-resources" depends="tests-init"
+ description="Copy the deployment resources.">
+ <macro-copy-resources srcdir="${core.dir}/src/test-framework" />
+ <macro-copy-resources srcdir="${core.dir}/src/test" />
+ </target>
- <target name="tests-jars" depends="wsconsume,tests-compile,tests-copy-resources,tests-compile-generated-resources" description="Build the deployments.">
- <ant antfile="${core.dir}/ant-import-tests/build-jars-jaxrpc.xml" target="build-jars-jaxrpc"/>
- <ant antfile="${core.dir}/ant-import-tests/build-samples-jaxrpc.xml" target="build-samples-jaxrpc"/>
- <ant antfile="${core.dir}/ant-import-tests/build-jars-jaxws.xml" target="build-jars-jaxws"/>
- <ant antfile="${core.dir}/ant-import-tests/build-samples-jaxws.xml" target="build-samples-jaxws"/>
- <ant antfile="${core.dir}/src/test-framework/ant-import/build-jars-jaxws.xml" target="build-jars-jaxws"/>
- </target>
+ <target name="tests-jars"
+ depends="wsconsume,tests-compile,tests-copy-resources,tests-compile-generated-resources"
+ description="Build the deployments.">
+ <ant antfile="${core.dir}/ant-import-tests/build-jars-jaxrpc.xml"
+ target="build-jars-jaxrpc" />
+ <ant antfile="${core.dir}/ant-import-tests/build-samples-jaxrpc.xml"
+ target="build-samples-jaxrpc" />
+ <ant antfile="${core.dir}/ant-import-tests/build-jars-jaxws.xml"
+ target="build-jars-jaxws" />
+ <ant antfile="${core.dir}/ant-import-tests/build-samples-jaxws.xml"
+ target="build-samples-jaxws" />
+ <ant
+ antfile="${core.dir}/src/test-framework/ant-import/build-jars-jaxws.xml"
+ target="build-jars-jaxws" />
+ </target>
- <target name="tests-main" depends="tests-jars" description="Build the deployments."/>
+ <target name="tests-main" depends="tests-jars"
+ description="Build the deployments." />
</project>
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/etc/component-info.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/etc/component-info.xml 2008-08-15 12:57:01 UTC (rev 8108)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/etc/component-info.xml 2008-08-15 15:05:15 UTC (rev 8109)
@@ -33,6 +33,7 @@
</import>
<import componentref="jbpm/bpel">
<compatible version="@jbpm-bpel@"/>
+ <compatible version="1.0.0.GA"/>
</import>
<import componentref="stax-api">
<compatible version="@stax-api@"/>
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties 2008-08-15 12:57:01 UTC (rev 8108)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties 2008-08-15 15:05:15 UTC (rev 8109)
@@ -16,7 +16,7 @@
# Thirdparty library versions that are referenced in component-info.xml
apache-xmlsec=1.3.0
ibm-wsdl4j=1.6.2
-jbpm-bpel=1.1.0.GA
+jbpm-bpel=1.1.0.Beta5
stax-api=1.0
sun-jaxb=2.1.4
sun-jaxws=2.1.1
16 years, 4 months
JBossWS SVN: r8108 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP: src/main/etc and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-08-15 08:57:01 -0400 (Fri, 15 Aug 2008)
New Revision: 8108
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/etc/component-info42.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties
Log:
Version updates to match EAP versions.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/etc/component-info42.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/etc/component-info42.xml 2008-08-14 16:25:00 UTC (rev 8107)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/etc/component-info42.xml 2008-08-15 12:57:01 UTC (rev 8108)
@@ -16,7 +16,6 @@
</import>
<import componentref="jboss/remoting">
<compatible version="@jboss-remoting-jboss42@"/>
- <compatible version="@jboss-remoting-jboss42@-brew"/>
</import>
<export>
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties 2008-08-14 16:25:00 UTC (rev 8107)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties 2008-08-15 12:57:01 UTC (rev 8108)
@@ -16,7 +16,7 @@
# Thirdparty library versions that are referenced in component-info.xml
apache-xmlsec=1.3.0
ibm-wsdl4j=1.6.2
-jbpm-bpel=1.1.0.Beta5
+jbpm-bpel=1.1.0.GA
stax-api=1.0
sun-jaxb=2.1.4
sun-jaxws=2.1.1
@@ -36,7 +36,7 @@
# JBossAS-4.2
jboss-jbossxb-jboss42=1.0.0.SP3
-jboss-remoting-jboss42=2.2.2.SP1
+jboss-remoting-jboss42=2.2.2.SP9-brew
# JBossAS-4.0
jboss-jbossxb-jboss40=1.0.0.CR11
16 years, 4 months
JBossWS SVN: r8107 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP: ant-import-tests and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-08-14 12:25:00 -0400 (Thu, 14 Aug 2008)
New Revision: 8107
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws1813/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws1813/
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/.classpath
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-jars-jaxws.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties
Log:
[JBPAPP-1080] context-root in jboss.xml is ignored - Test Case
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/.classpath
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/.classpath 2008-08-14 16:09:56 UTC (rev 8106)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/.classpath 2008-08-14 16:25:00 UTC (rev 8107)
@@ -3,6 +3,7 @@
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="output/tests/wsconsume/java"/>
<classpathentry kind="src" path="src/test/java"/>
+ <classpathentry kind="src" path="src/test-framework/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="thirdparty/activation.jar"/>
<classpathentry kind="lib" path="thirdparty/getopt.jar"/>
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-jars-jaxws.xml 2008-08-14 16:09:56 UTC (rev 8106)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-jars-jaxws.xml 2008-08-14 16:25:00 UTC (rev 8107)
@@ -436,6 +436,24 @@
</webinf>
</war>
+ <!-- jaxws-jbws1813 -->
+ <jar destfile="${tests.output.dir}/libs/jaxws-jbws1813.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.class"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/resources/jaxws/jbws1813/META-INF">
+ <include name="jboss.xml"/>
+ </metainf>
+ </jar>
+ <jar destfile="${tests.output.dir}/libs/jaxws-jbws1813.ear">
+ <fileset dir="${tests.output.dir}/libs">
+ <include name="jaxws-jbws1813.jar"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/resources/jaxws/jbws1813/META-INF">
+ <include name="application.xml"/>
+ </metainf>
+ </jar>
+
<!-- jaxws-jbws1854 -->
<war destfile="${tests.output.dir}/libs/jaxws-jbws1854.war" webxml="${tests.output.dir}/resources/jaxws/jbws1854/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws1813 (from rev 7975, framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1813)
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws1813 (from rev 7975, framework/trunk/testsuite/test/resources/jaxws/jbws1813)
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties 2008-08-14 16:09:56 UTC (rev 8106)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/version.properties 2008-08-14 16:25:00 UTC (rev 8107)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=2.0.1.SP2_CP
-repository.id=2.0.1.SP2_CP
+version.id=2.0.1.SP2_CP-SNAPSHOT
+repository.id=2.0.1.SP2_CP-SNAPSHOT
implementation.title=JBoss Web Services - Native
implementation.url=http://www.jboss.org/products/jbossws
16 years, 4 months
JBossWS SVN: r8106 - spi/branches/jbossws-spi-1.0.0.GA_CP/src/main/java/org/jboss/wsf/spi/annotation.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2008-08-14 12:09:56 -0400 (Thu, 14 Aug 2008)
New Revision: 8106
Added:
spi/branches/jbossws-spi-1.0.0.GA_CP/src/main/java/org/jboss/wsf/spi/annotation/WebContextImpl.java
Log:
[JBPAPP-1080] Add WebContextImpl to fix context-root in jboss.xml is ignored.
Copied: spi/branches/jbossws-spi-1.0.0.GA_CP/src/main/java/org/jboss/wsf/spi/annotation/WebContextImpl.java (from rev 7831, spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/WebContextImpl.java)
===================================================================
--- spi/branches/jbossws-spi-1.0.0.GA_CP/src/main/java/org/jboss/wsf/spi/annotation/WebContextImpl.java (rev 0)
+++ spi/branches/jbossws-spi-1.0.0.GA_CP/src/main/java/org/jboss/wsf/spi/annotation/WebContextImpl.java 2008-08-14 16:09:56 UTC (rev 8106)
@@ -0,0 +1,153 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.spi.annotation;
+
+import java.lang.annotation.Annotation;
+
+/**
+ * Represents a {@link org.jboss.wsf.spi.annotation.WebContext} annotation
+ * and reflects the annotation defult values. <br>
+ * This implementation is used to provide a meta data representation (descriptor overrides) for the jboss EJB3 project.
+ *
+ * @author Heiko.Braun(a)jboss.com
+ */
+public class WebContextImpl implements WebContext
+{
+ private String contextRoot = "";
+ private String authmethod = "";
+ private String[] virtualHosts = new String[] {};
+ private String urlpattern = "";
+ private String transportGuarantee = "";
+ private boolean securedWsdl = false;
+
+ /**
+ * The contextRoot element specifies the context root that the web service endpoint is deployed to.
+ * If it is not specified it will be derived from the deployment short name.
+ *
+ * Applies to server side port components only.
+ */
+ public String contextRoot()
+ {
+ return this.contextRoot;
+ };
+
+
+ public void setContextRoot(String contextRoot)
+ {
+ this.contextRoot = contextRoot;
+ }
+
+ /**
+ * The virtual hosts that the web service endpoint is deployed to.
+ *
+ * Applies to server side port components only.
+ */
+ public String[] virtualHosts(){
+ return virtualHosts;
+ };
+
+
+ public void setVirtualHosts(String[] virtualHosts)
+ {
+ this.virtualHosts = virtualHosts;
+ }
+
+ /**
+ * Relative path that is appended to the contextRoot to form fully qualified
+ * endpoint address for the web service endpoint.
+ *
+ * Applies to server side port components only.
+ */
+ public String urlPattern() {
+ return urlpattern;
+ };
+
+
+ public void setUrlpattern(String urlpattern)
+ {
+ this.urlpattern = urlpattern;
+ }
+
+ /**
+ * The authMethod is used to configure the authentication mechanism for the web service.
+ * As a prerequisite to gaining access to any web service which are protected by an authorization
+ * constraint, a user must have authenticated using the configured mechanism.
+ *
+ * Legal values for this element are "BASIC", or "CLIENT-CERT".
+ */
+ public String authMethod()
+ {
+ return authmethod;
+ };
+
+
+ public void setAuthmethod(String authmethod)
+ {
+ this.authmethod = authmethod;
+ }
+
+ /**
+ * The transportGuarantee specifies that the communication
+ * between client and server should be NONE, INTEGRAL, or
+ * CONFIDENTIAL. NONE means that the application does not require any
+ * transport guarantees. A value of INTEGRAL means that the application
+ * requires that the data sent between the client and server be sent in
+ * such a way that it can't be changed in transit. CONFIDENTIAL means
+ * that the application requires that the data be transmitted in a
+ * fashion that prevents other entities from observing the contents of
+ * the transmission. In most cases, the presence of the INTEGRAL or
+ * CONFIDENTIAL flag will indicate that the use of SSL is required.
+ */
+ public String transportGuarantee()
+ {
+ return transportGuarantee;
+ };
+
+
+ public void setTransportGuarantee(String transportGuarantee)
+ {
+ this.transportGuarantee = transportGuarantee;
+ }
+
+ /**
+ * A secure endpoint does not secure wsdl access by default.
+ * Explicitly setting secureWSDLAccess overrides this behaviour.
+ *
+ * Protect access to WSDL. See http://jira.jboss.org/jira/browse/JBWS-723
+ */
+ public boolean secureWSDLAccess()
+ {
+ return securedWsdl;
+ };
+
+
+ public void setSecuredWsdl(boolean securedWsdl)
+ {
+ this.securedWsdl = securedWsdl;
+ }
+
+ public Class<? extends Annotation> annotationType()
+ {
+ return WebContext.class;
+ }
+
+}
16 years, 4 months
JBossWS SVN: r8105 - in stack/cxf: tags and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2008-08-14 06:19:24 -0400 (Thu, 14 Aug 2008)
New Revision: 8105
Added:
stack/cxf/tags/jbossws-cxf-3.0.3.GA/
Removed:
stack/cxf/branches/jbossws-cxf-3.0.3.GA/
Log:
[JBWS-2274] Tagging jbossws-cxf-3.0.3.GA
Copied: stack/cxf/tags/jbossws-cxf-3.0.3.GA (from rev 8104, stack/cxf/branches/jbossws-cxf-3.0.3.GA)
16 years, 4 months
JBossWS SVN: r8104 - in stack/cxf/branches/jbossws-cxf-3.0.3.GA: modules/client and 6 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2008-08-14 06:06:25 -0400 (Thu, 14 Aug 2008)
New Revision: 8104
Modified:
stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/client/pom.xml
stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/management/pom.xml
stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/resources/pom.xml
stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/server/pom.xml
stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/cxf-tests/pom.xml
stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/framework-tests/pom.xml
stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/pom.xml
stack/cxf/branches/jbossws-cxf-3.0.3.GA/pom.xml
Log:
[JBWS-2274] Moving to GA version
Modified: stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/client/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/client/pom.xml 2008-08-14 10:01:18 UTC (rev 8103)
+++ stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/client/pom.xml 2008-08-14 10:06:25 UTC (rev 8104)
@@ -9,7 +9,7 @@
<parent>
<groupId>org.jboss.ws.cxf</groupId>
<artifactId>jbossws-cxf</artifactId>
- <version>3.0.3-SNAPSHOT</version>
+ <version>3.0.3.GA</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/management/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/management/pom.xml 2008-08-14 10:01:18 UTC (rev 8103)
+++ stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/management/pom.xml 2008-08-14 10:06:25 UTC (rev 8104)
@@ -9,7 +9,7 @@
<parent>
<groupId>org.jboss.ws.cxf</groupId>
<artifactId>jbossws-cxf</artifactId>
- <version>3.0.3-SNAPSHOT</version>
+ <version>3.0.3.GA</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/resources/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/resources/pom.xml 2008-08-14 10:01:18 UTC (rev 8103)
+++ stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/resources/pom.xml 2008-08-14 10:06:25 UTC (rev 8104)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.jboss.ws.cxf</groupId>
<artifactId>jbossws-cxf</artifactId>
- <version>3.0.3-SNAPSHOT</version>
+ <version>3.0.3.GA</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/server/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/server/pom.xml 2008-08-14 10:01:18 UTC (rev 8103)
+++ stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/server/pom.xml 2008-08-14 10:06:25 UTC (rev 8104)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.jboss.ws.cxf</groupId>
<artifactId>jbossws-cxf</artifactId>
- <version>3.0.3-SNAPSHOT</version>
+ <version>3.0.3.GA</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/cxf-tests/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/cxf-tests/pom.xml 2008-08-14 10:01:18 UTC (rev 8103)
+++ stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/cxf-tests/pom.xml 2008-08-14 10:06:25 UTC (rev 8104)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.jboss.ws.cxf</groupId>
<artifactId>jbossws-cxf-testsuite</artifactId>
- <version>3.0.3-SNAPSHOT</version>
+ <version>3.0.3.GA</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/framework-tests/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/framework-tests/pom.xml 2008-08-14 10:01:18 UTC (rev 8103)
+++ stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/framework-tests/pom.xml 2008-08-14 10:06:25 UTC (rev 8104)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.jboss.ws.cxf</groupId>
<artifactId>jbossws-cxf-testsuite</artifactId>
- <version>3.0.3-SNAPSHOT</version>
+ <version>3.0.3.GA</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/pom.xml 2008-08-14 10:01:18 UTC (rev 8103)
+++ stack/cxf/branches/jbossws-cxf-3.0.3.GA/modules/testsuite/pom.xml 2008-08-14 10:06:25 UTC (rev 8104)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.jboss.ws.cxf</groupId>
<artifactId>jbossws-cxf</artifactId>
- <version>3.0.3-SNAPSHOT</version>
+ <version>3.0.3.GA</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Modified: stack/cxf/branches/jbossws-cxf-3.0.3.GA/pom.xml
===================================================================
--- stack/cxf/branches/jbossws-cxf-3.0.3.GA/pom.xml 2008-08-14 10:01:18 UTC (rev 8103)
+++ stack/cxf/branches/jbossws-cxf-3.0.3.GA/pom.xml 2008-08-14 10:06:25 UTC (rev 8104)
@@ -20,7 +20,7 @@
<artifactId>jbossws-cxf</artifactId>
<packaging>pom</packaging>
- <version>3.0.3-SNAPSHOT</version>
+ <version>3.0.3.GA</version>
<!-- Parent -->
<parent>
@@ -31,9 +31,9 @@
<!-- Source Control Management -->
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossws/stack/cxf/branches/jbossws...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossws/stack/cxf/branches/jbossws-cx...</developerConnection>
- <url>http://fisheye.jboss.com/viewrep/JBossWS/stack/cxf/branches/jbossws-cxf-3...</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossws/stack/cxf/tags/jbossws-cxf...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossws/stack/cxf/tags/jbossws-cxf-3....</developerConnection>
+ <url>http://fisheye.jboss.com/viewrep/JBossWS/stack/cxf/tags/jbossws-cxf-3.0.3.GA</url>
</scm>
<!-- Modules -->
16 years, 4 months