[jboss-svn-commits] JBL Code SVN: r12386 - in labs/jbossesb/trunk/product: lib/ext and 3 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jun 7 12:08:28 EDT 2007


Author: tfennelly
Date: 2007-06-07 12:08:28 -0400 (Thu, 07 Jun 2007)
New Revision: 12386

Added:
   labs/jbossesb/trunk/product/lib/ext/jboss-jaxws.jar
Modified:
   labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/actions/soap/JBossWSAdapter.java
   labs/jbossesb/trunk/product/lib/ext/jbossws-spi.jar
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/readme.txt
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/test/soap_message_01.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/test/soap_message_02.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/webservice/GoodbyeWorldWS.java
Log:
Updated JBossWSAdapter to use JBossWS v2.0.0 codebase.  Updated webservice_jbossws_adapter_01 quickstart.  webservice_bpel is still out of date.

Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/actions/soap/JBossWSAdapter.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/actions/soap/JBossWSAdapter.java	2007-06-07 16:02:31 UTC (rev 12385)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/actions/soap/JBossWSAdapter.java	2007-06-07 16:08:28 UTC (rev 12386)
@@ -36,6 +36,7 @@
 import org.jboss.wsf.spi.deployment.Endpoint;
 import org.jboss.wsf.spi.invocation.InvocationContext;
 import org.jboss.wsf.spi.invocation.RequestHandler;
+import org.jboss.wsf.spi.invocation.BasicInvocationContext;
 import org.jboss.wsf.spi.management.EndpointRegistry;
 import org.jboss.wsf.spi.management.EndpointRegistryFactory;
 
@@ -80,7 +81,7 @@
         try {
             messageTL.set(message);
             RequestHandler requestHandler = endpoint.getRequestHandler();
-            InvocationContext invocationContext = endpoint.getInvocationHandler().createInvocation().getInvocationContext();
+            InvocationContext invocationContext = new BasicInvocationContext();
             ByteArrayOutputStream os = new ByteArrayOutputStream();
 
             requestHandler.handleRequest(endpoint, new ByteArrayInputStream(soapMessage), os, invocationContext);

Added: labs/jbossesb/trunk/product/lib/ext/jboss-jaxws.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/trunk/product/lib/ext/jboss-jaxws.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: labs/jbossesb/trunk/product/lib/ext/jbossws-spi.jar
===================================================================
(Binary files differ)

Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/readme.txt	2007-06-07 16:02:31 UTC (rev 12385)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/readme.txt	2007-06-07 16:08:28 UTC (rev 12386)
@@ -1,22 +1,29 @@
 Overview:
 =========
-   TODO
+   This sample demonstrates how to deploy a JSR181 Webservice endpoint on JBossESB
+   using the JBossWSAdapter action.
 
 
 Before Running:
 ===============
 1. Update the "org.jboss.esb.server.home" property in the quickstarts.properties
-   file in "../".
-2. Make sure the jbossesb.sar is deployed on your JBoss Application Server.
-   In the ESB "install" folder update deployment.properties and then run "ant".
-   This example does require you to use a version for 4.0.4+ with the EJB3 profile.
-3. Make sure the JBoss Application server is running.
+   file in "../conf".
+2. Make sure you're running the ESB on JBoss AS v4.2.0GA.
+3. Make sure the following ESB components are deployed to your JBoss AS. These
+   components can be located in the "lib" folder of the distro (build/jbossesb/lib
+   if you are working from the SVN source).
+        a) jbossesb.esb
+        b) jbossesb.sar
+4. Delete the jbm-queue-service.xml file from jbossesb.esb.
+5. Checkout everything from the following Subversion address and run the
+   Ant script contained therein: http://anonsvn.labs.jboss.com/labs/jbossesb/workspace/jbossws2_0_0/
+6. Start the JBoss App Server.
 
 
 To Run:
 =======
-1. In the first command window, execute "ant".  This will compile the project, build
-the needed jars and deploy the ESB archive component to the Application Server.  If you are 
-monitoring the Application Server console you will see it hot deploy the WAR.
+1. In the first command window, execute "ant clean deploy".  This will compile the project, build
+   the needed jars and deploy the ESB archive component to the Application Server.  If you are
+   monitoring the Application Server console you will see it hot deploy the WAR.
 
-2. Run "ant runtest". 
+2. Run "ant runtest".  You will see the message being processed on the App Server Java console window. 

Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/test/soap_message_01.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/test/soap_message_01.xml	2007-06-07 16:02:31 UTC (rev 12385)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/test/soap_message_01.xml	2007-06-07 16:08:28 UTC (rev 12386)
@@ -2,7 +2,7 @@
    <soapenv:Header/>
    <soapenv:Body>
       <good:sayGoodbye>
-         <String_1>Goodbye!!</String_1>
+         <message>Goodbye!!</message>
       </good:sayGoodbye>
    </soapenv:Body>
 </soapenv:Envelope>
\ No newline at end of file

Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/test/soap_message_02.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/test/soap_message_02.xml	2007-06-07 16:02:31 UTC (rev 12385)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/test/soap_message_02.xml	2007-06-07 16:08:28 UTC (rev 12386)
@@ -2,7 +2,7 @@
    <soapenv:Header/>
    <soapenv:Body>
       <good:sayGoodbyeWithoutResponse>
-         <String_1>Goodbye!!</String_1>
+         <message>Goodbye!!</message>
       </good:sayGoodbyeWithoutResponse>
    </soapenv:Body>
 </soapenv:Envelope>
\ No newline at end of file

Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/webservice/GoodbyeWorldWS.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/webservice/GoodbyeWorldWS.java	2007-06-07 16:02:31 UTC (rev 12385)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_jbossws_adapter_01/src/org/jboss/soa/esb/samples/quickstart/webservicejbosswsadapter01/webservice/GoodbyeWorldWS.java	2007-06-07 16:08:28 UTC (rev 12386)
@@ -2,6 +2,7 @@
 
 import javax.jws.WebService;
 import javax.jws.WebMethod;
+import javax.jws.WebParam;
 import javax.jws.soap.SOAPBinding;
 
 import org.jboss.soa.esb.message.Message;
@@ -15,7 +16,7 @@
 public class GoodbyeWorldWS {
 
     @WebMethod
-    public String sayGoodbye(String message) {
+    public String sayGoodbye(@WebParam(name="message") String message) {
 
         Message esbMessage = JBossWSAdapter.getMessage();
         if(esbMessage != null) {
@@ -26,7 +27,7 @@
     }
 
     @WebMethod
-    public void sayGoodbyeWithoutResponse(String message) {
+    public void sayGoodbyeWithoutResponse(@WebParam(name="message") String message) {
 
         Message esbMessage = JBossWSAdapter.getMessage();
         if(esbMessage != null) {




More information about the jboss-svn-commits mailing list