Author: objectiser
Date: 2010-12-13 08:03:46 -0500 (Mon, 13 Dec 2010)
New Revision: 1203
Added:
dsp/trunk/samples/provider/
dsp/trunk/samples/provider/.classpath
dsp/trunk/samples/provider/.project
dsp/trunk/samples/provider/pom.xml
dsp/trunk/samples/provider/src/
dsp/trunk/samples/provider/src/main/
dsp/trunk/samples/provider/src/main/java/
dsp/trunk/samples/provider/src/main/java/org/
dsp/trunk/samples/provider/src/main/java/org/jboss/
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/provider/
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/provider/ExampleServiceProvider.java
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/provider/ExampleWebServiceFactory.java
Removed:
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/ExampleServiceProvider.java
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/ExampleWebServiceFactory.java
Modified:
dsp/trunk/samples/deployer-assembly/pom.xml
dsp/trunk/samples/deployer-assembly/src/main/assembly/war.xml
dsp/trunk/samples/deployer/pom.xml
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/WSDeployer.java
dsp/trunk/samples/pom.xml
Log:
Separate out the example provider from the deployer, so it can be placed in the tomcat
lib.
Modified: dsp/trunk/samples/deployer/pom.xml
===================================================================
--- dsp/trunk/samples/deployer/pom.xml 2010-12-09 17:30:16 UTC (rev 1202)
+++ dsp/trunk/samples/deployer/pom.xml 2010-12-13 13:03:46 UTC (rev 1203)
@@ -31,6 +31,11 @@
<version>${dsp.version}</version>
</dependency>
<dependency>
+ <groupId>org.jboss.soa.dsp.samples</groupId>
+ <artifactId>dsp-example-provider</artifactId>
+ <version>${dsp.version}</version>
+ </dependency>
+ <dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.2</version>
Deleted:
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/ExampleServiceProvider.java
===================================================================
---
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/ExampleServiceProvider.java 2010-12-09
17:30:16 UTC (rev 1202)
+++
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/ExampleServiceProvider.java 2010-12-13
13:03:46 UTC (rev 1203)
@@ -1,69 +0,0 @@
-/*
- * Copyright 2010 Red Hat, Inc
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *
http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.jboss.soa.dsp.example;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.soa.dsp.InvocationAdapter;
-import org.jboss.soa.dsp.MessageAdapter;
-import org.jboss.soa.dsp.ServiceProvider;
-import org.jboss.soa.dsp.ws.WSInvocationAdapter;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-
-public class ExampleServiceProvider implements ServiceProvider {
-
- public void invoke(InvocationAdapter<?> arg0) throws Exception {
- System.out.println("EXAMPLE SERVICE PROVIDER: invoke "+arg0);
-
- arg0.createFault(null, new QName("http://www.example.org",
"ExampleFault"),
- new MessageAdapter() {
-
- public Map<String, Node> getHeaderParts() {
- return new HashMap<String,Node>();
- }
-
- public Element getMessage() {
- Element ret=null;
-
- try {
- ret = javax.xml.parsers.DocumentBuilderFactory.newInstance().
- newDocumentBuilder().newDocument().createElement("ExampleFaultDetails");
- } catch(Exception e) {
- e.printStackTrace();
- }
-
- return(ret);
- }
-
- public Element getPart(String arg0) {
- return null;
- }
-
- public void setHeaderPart(String arg0, Element arg1) {
- }
-
- public void setPart(String arg0, Element arg1) {
- }
-
- });
- }
-
-}
Deleted:
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/ExampleWebServiceFactory.java
===================================================================
---
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/ExampleWebServiceFactory.java 2010-12-09
17:30:16 UTC (rev 1202)
+++
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/ExampleWebServiceFactory.java 2010-12-13
13:03:46 UTC (rev 1203)
@@ -1,37 +0,0 @@
-/*
- * Copyright 2010 Red Hat, Inc
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *
http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.jboss.soa.dsp.example;
-
-import javax.xml.namespace.QName;
-
-import org.jboss.soa.dsp.ServiceProvider;
-import org.jboss.soa.dsp.ws.SOAPMessageAdapter;
-import org.jboss.soa.dsp.ws.WSInvocationAdapter;
-import org.jboss.soa.dsp.ws.WebServiceProviderFactory;
-
-public class ExampleWebServiceFactory implements WebServiceProviderFactory {
-
- public ServiceProvider getServiceProvider() {
- return(new ExampleServiceProvider());
- }
-
- public WSInvocationAdapter getInvocationAdapter(String operationName,
- QName serviceName, String portName, SOAPMessageAdapter soapAdapter) {
- return(new WSInvocationAdapter(operationName,
- serviceName, portName, soapAdapter));
- }
-}
Modified:
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/WSDeployer.java
===================================================================
---
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/WSDeployer.java 2010-12-09
17:30:16 UTC (rev 1202)
+++
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/WSDeployer.java 2010-12-13
13:03:46 UTC (rev 1203)
@@ -27,6 +27,7 @@
import org.jboss.soa.dsp.EndpointMetaData;
import org.jboss.soa.dsp.ServiceEndpointReference;
import org.jboss.soa.dsp.deployer.ServiceDeployer;
+import org.jboss.soa.dsp.example.provider.ExampleWebServiceFactory;
import org.jboss.soa.dsp.server.ServerConfig;
import org.jboss.soa.dsp.ws.BaseWebServiceEndpoint;
import org.jboss.soa.dsp.ws.DeploymentBuilder;
Modified: dsp/trunk/samples/deployer-assembly/pom.xml
===================================================================
--- dsp/trunk/samples/deployer-assembly/pom.xml 2010-12-09 17:30:16 UTC (rev 1202)
+++ dsp/trunk/samples/deployer-assembly/pom.xml 2010-12-13 13:03:46 UTC (rev 1203)
@@ -36,6 +36,11 @@
<version>${dsp.version}</version>
</dependency>
<dependency>
+ <groupId>org.jboss.soa.dsp.samples</groupId>
+ <artifactId>dsp-example-provider</artifactId>
+ <version>${dsp.version}</version>
+ </dependency>
+ <dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.2</version>
Modified: dsp/trunk/samples/deployer-assembly/src/main/assembly/war.xml
===================================================================
--- dsp/trunk/samples/deployer-assembly/src/main/assembly/war.xml 2010-12-09 17:30:16 UTC
(rev 1202)
+++ dsp/trunk/samples/deployer-assembly/src/main/assembly/war.xml 2010-12-13 13:03:46 UTC
(rev 1203)
@@ -29,6 +29,7 @@
<include>org.jboss.soa.dsp:dsp-jboss</include>
<include>org.jboss.soa.dsp:dsp-tomcat</include>
<include>org.jboss.soa.dsp.samples:dsp-example-deployer</include>
+ <include>org.jboss.soa.dsp.samples:dsp-example-provider</include>
</includes>
</dependencySet>
Modified: dsp/trunk/samples/pom.xml
===================================================================
--- dsp/trunk/samples/pom.xml 2010-12-09 17:30:16 UTC (rev 1202)
+++ dsp/trunk/samples/pom.xml 2010-12-13 13:03:46 UTC (rev 1203)
@@ -15,6 +15,7 @@
</parent>
<modules>
+ <module>provider</module>
<module>deployer</module>
<module>deployer-assembly</module>
</modules>
Added: dsp/trunk/samples/provider/.classpath
===================================================================
--- dsp/trunk/samples/provider/.classpath (rev 0)
+++ dsp/trunk/samples/provider/.classpath 2010-12-13 13:03:46 UTC (rev 1203)
@@ -0,0 +1,14 @@
+<classpath>
+ <classpathentry kind="src" path="src/main/java"
including="**/*.java"/>
+ <classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="var"
path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/commons-fileupload/commons-fileupload/1.2.2/commons-fileupload-1.2.2.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/commons-io/commons-io/1.3.2/commons-io-1.3.2.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/org/jboss/soa/dsp/dsp-api/1.0.0-SNAPSHOT/dsp-api-1.0.0-SNAPSHOT.jar"
sourcepath="M2_REPO/org/jboss/soa/dsp/dsp-api/1.0.0-SNAPSHOT/dsp-api-1.0.0-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/org/jboss/soa/dsp/dsp-jboss/1.0.0-SNAPSHOT/dsp-jboss-1.0.0-SNAPSHOT.jar"
sourcepath="M2_REPO/org/jboss/soa/dsp/dsp-jboss/1.0.0-SNAPSHOT/dsp-jboss-1.0.0-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/org/jboss/soa/dsp/dsp-tomcat/1.0.0-SNAPSHOT/dsp-tomcat-1.0.0-SNAPSHOT.jar"
sourcepath="M2_REPO/org/jboss/soa/dsp/dsp-tomcat/1.0.0-SNAPSHOT/dsp-tomcat-1.0.0-SNAPSHOT-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/javassist/javassist/3.11.0.GA/javassist-3.11.0.GA.jar"
sourcepath="M2_REPO/javassist/javassist/3.11.0.GA/javassist-3.11.0.GA-sources.jar"/>
+ <classpathentry kind="var"
path="M2_REPO/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.jar"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+</classpath>
\ No newline at end of file
Added: dsp/trunk/samples/provider/.project
===================================================================
--- dsp/trunk/samples/provider/.project (rev 0)
+++ dsp/trunk/samples/provider/.project 2010-12-13 13:03:46 UTC (rev 1203)
@@ -0,0 +1,13 @@
+<projectDescription>
+ <name>dsp-example-provider</name>
+ <comment>NO_M2ECLIPSE_SUPPORT: Project files created with the
maven-eclipse-plugin are not supported in M2Eclipse.</comment>
+ <projects/>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
\ No newline at end of file
Added: dsp/trunk/samples/provider/pom.xml
===================================================================
--- dsp/trunk/samples/provider/pom.xml (rev 0)
+++ dsp/trunk/samples/provider/pom.xml 2010-12-13 13:03:46 UTC (rev 1203)
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.dsp.samples</groupId>
+ <artifactId>dsp-example-provider</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+ <name>SOA::DSP::Samples::Provider</name>
+
+ <parent>
+ <groupId>org.jboss.soa.dsp</groupId>
+ <artifactId>samples</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.soa.dsp</groupId>
+ <artifactId>dsp-api</artifactId>
+ <version>${dsp.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.soa.dsp</groupId>
+ <artifactId>dsp-jboss</artifactId>
+ <version>${dsp.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.soa.dsp</groupId>
+ <artifactId>dsp-tomcat</artifactId>
+ <version>${dsp.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>wsdl4j</groupId>
+ <artifactId>wsdl4j</artifactId>
+ <version>${wsdl4j.version}</version>
+ <!-- scope>provided</scope -->
+ </dependency>
+ <dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>${javassist.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons.logging.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Added:
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/provider/ExampleServiceProvider.java
===================================================================
---
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/provider/ExampleServiceProvider.java
(rev 0)
+++
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/provider/ExampleServiceProvider.java 2010-12-13
13:03:46 UTC (rev 1203)
@@ -0,0 +1,69 @@
+/*
+ * Copyright 2010 Red Hat, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.jboss.soa.dsp.example.provider;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.soa.dsp.InvocationAdapter;
+import org.jboss.soa.dsp.MessageAdapter;
+import org.jboss.soa.dsp.ServiceProvider;
+import org.jboss.soa.dsp.ws.WSInvocationAdapter;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class ExampleServiceProvider implements ServiceProvider {
+
+ public void invoke(InvocationAdapter<?> arg0) throws Exception {
+ System.out.println("EXAMPLE SERVICE PROVIDER: invoke "+arg0);
+
+ arg0.createFault(null, new QName("http://www.example.org",
"ExampleFault"),
+ new MessageAdapter() {
+
+ public Map<String, Node> getHeaderParts() {
+ return new HashMap<String,Node>();
+ }
+
+ public Element getMessage() {
+ Element ret=null;
+
+ try {
+ ret = javax.xml.parsers.DocumentBuilderFactory.newInstance().
+ newDocumentBuilder().newDocument().createElement("ExampleFaultDetails");
+ } catch(Exception e) {
+ e.printStackTrace();
+ }
+
+ return(ret);
+ }
+
+ public Element getPart(String arg0) {
+ return null;
+ }
+
+ public void setHeaderPart(String arg0, Element arg1) {
+ }
+
+ public void setPart(String arg0, Element arg1) {
+ }
+
+ });
+ }
+
+}
Added:
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/provider/ExampleWebServiceFactory.java
===================================================================
---
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/provider/ExampleWebServiceFactory.java
(rev 0)
+++
dsp/trunk/samples/provider/src/main/java/org/jboss/soa/dsp/example/provider/ExampleWebServiceFactory.java 2010-12-13
13:03:46 UTC (rev 1203)
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2010 Red Hat, Inc
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.jboss.soa.dsp.example.provider;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.soa.dsp.ServiceProvider;
+import org.jboss.soa.dsp.ws.SOAPMessageAdapter;
+import org.jboss.soa.dsp.ws.WSInvocationAdapter;
+import org.jboss.soa.dsp.ws.WebServiceProviderFactory;
+
+public class ExampleWebServiceFactory implements WebServiceProviderFactory {
+
+ public ServiceProvider getServiceProvider() {
+ return(new ExampleServiceProvider());
+ }
+
+ public WSInvocationAdapter getInvocationAdapter(String operationName,
+ QName serviceName, String portName, SOAPMessageAdapter soapAdapter) {
+ return(new WSInvocationAdapter(operationName,
+ serviceName, portName, soapAdapter));
+ }
+}