[jboss-svn-commits] JBL Code SVN: r15014 - in labs/jbossesb/trunk/product: samples/quickstarts/bpm_orchestration2 and 23 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Sep 11 09:09:12 EDT 2007


Author: tfennelly
Date: 2007-09-11 09:09:12 -0400 (Tue, 11 Sep 2007)
New Revision: 15014

Added:
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/README.html
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/build.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/deployment.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/images/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/images/client-console.png
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/images/esb-console.png
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbm-queue-service.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbmq-queue-service.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jboss-esb.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jndi.properties
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/lib/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/listener.log
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/log4j.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/ServerHandler.java
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpoint.java
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpointImpl.java
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/ClientHandler.java
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/WSAClient.java
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/jaxws-handlers.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/resources/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/resources/WEB-INF/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/resources/WEB-INF/web.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/view/
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/view/index.jsp
   labs/jbossesb/trunk/product/services/soap/lib/ext/build-time/jboss-saaj.jar
Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2/
   labs/jbossesb/trunk/product/samples/quickstarts/groovy_gateway/
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/
   labs/jbossesb/trunk/product/samples/quickstarts/transform_CSV2XML/
   labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2POJO/
   labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2POJO/build.xml
   labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_simple/
   labs/jbossesb/trunk/product/samples/quickstarts/wiretap/
   labs/jbossesb/trunk/product/services/soap/lib/ext/build-time/jbossall-client.jar
   labs/jbossesb/trunk/product/tools/
Log:
WS-Addressing quickstart


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/bpm_orchestration2
___________________________________________________________________
Name: svn:ignore
   - build
jbossesb-gateway.xml
jbossesb-listener.xml

   + build
jbossesb-gateway.xml
jbossesb-listener.xml
listener.log



Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/groovy_gateway
___________________________________________________________________
Name: svn:ignore
   + jbossesb-gateway.xml
jbossesb-listener.xml
listener.log



Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/helloworld
___________________________________________________________________
Name: svn:ignore
   - build
jbossesb-gateway.xml
jbossesb-listener.xml

   + build
jbossesb-gateway.xml
jbossesb-listener.xml
listener.log



Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/transform_CSV2XML
___________________________________________________________________
Name: svn:ignore
   - build

   + build
jbossesb-gateway.xml
jbossesb-listener.xml



Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2POJO
___________________________________________________________________
Name: svn:ignore
   - build

   + build
jbossesb-gateway.xml
jbossesb-listener.xml


Modified: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2POJO/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2POJO/build.xml	2007-09-11 12:59:13 UTC (rev 15013)
+++ labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2POJO/build.xml	2007-09-11 13:09:12 UTC (rev 15014)
@@ -10,7 +10,6 @@
 	
 	<!-- Import the base Ant build script... -->
 	<import file="../conf/base-build.xml"/>
-	
 
 	<target name="runtest" depends="compile" description="runs test JMS Sender">
 		<echo>Runs Test JMS Sender</echo>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_simple
___________________________________________________________________
Name: svn:ignore
   - build

   + build
jbossesb-gateway.xml
jbossesb-listener.xml


Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/README.html
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/README.html	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/README.html	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,47 @@
+<html>
+    <head>
+        <title>JBossESB - WS-Addressing Quickstart</title>
+    </head>
+    <body>
+        <h2>Overview</h2>
+        This sample demonstrates how to implement a stateful webservice using WS-Addressing and access it through
+        an ESB endpoint.  JBossESB relies of JBossWS for WS-Addressing support.
+        <a href="http://labs.jboss.com/jbossws/docs/jaxws_userguide-2.0/index.html#d0e882">See more here</a>.
+        <p/>
+        The sample is a really simple standalone shopping cart.  The webservice client class uses JAX-WS client
+        code and creates 2 client port instances to perform add, get and checkout operations on the sample
+        cart.
+        <p/>
+        As an excercise, you could attempt to implement the cart functionality as a Stateful Session Bean that gets
+        invoked via this webservice interface.  This would mimic the usecase where the cart is a legacy service
+        implemented in EJB and you're using the ESB to expose a Webservice interface on that service.
+
+        <h2>Prerequisits</h2>
+        Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts
+        and a more detailed descripton of the different ways to run the quickstarts.
+        <p/>
+        Note, this quickstart requires an ESB and JBossWS installation into
+        JBoss AS 4.2.1.GA. Installation instructions for both can be found in the
+        install/readme.txt.
+
+        <h2>To Run</h2>
+        <ol>
+            <li>In a command terminal window in this folder ("Window1"), type 'ant deploy'.</li>
+            <li>Open another command terminal window in this folder ("Window2"), type
+                'ant runtest'.
+            </li>
+            <li>Check "Window1" and "Window2" for output.</li>
+            <li>To undeploy, type 'ant undeploy' in "Window1".</li>
+        </ol>
+
+        "Window1" should contain ESB Server side logging from the quickstart, showing the message before and
+        after execution through the SOAPProcessor.
+        <p/>
+        <img src="images/esb-console.png" />
+        <p/>
+        "Window2" should contain Client side logging from the quickstart, showing the view of the shopping
+        carts for both client port instances as the cart transitions through its different states.
+        <p/>
+        <img src="images/client-console.png" />
+    </body>
+</html>

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/build.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/build.xml	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,36 @@
+<project name="Quickstart_webservice_wsa" default="deploy" basedir=".">
+	
+	<description> 
+		${ant.project.name}
+		${line.separator}
+	</description>
+			
+	<!-- Import the base Ant build script... -->
+	<import file="../conf/base-build.xml"/>
+
+    <target name="quickstart-specific-dependencies" depends="assert-ws-available">
+        <path id="quickstart-dependencies-classpath">
+            <fileset dir="${org.jboss.esb.server.home}/client" includes="jbossws-client.jar,jboss-remoting.jar" />
+        </path>
+    </target>
+	
+    <target name="quickstart-specific-assemblies">
+        <!-- Overriden from the target of the same name in base-build.xml. -->
+        <!-- Called by the "deploy" target.  Don't call directly!! -->
+
+        <!-- Build the webservice... -->
+        <war warfile="build/${ant.project.name}.war"
+             webxml="${basedir}/war/resources/WEB-INF/web.xml">
+            <fileset dir="${basedir}/war/view">
+                <include name="**/*"/>
+            </fileset>
+        </war>
+    </target>
+
+    <target name="runtest" depends="compile" description="runs test JMS Sender">
+        <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.webservicewsa.client.WSAClient" failonerror="true">
+            <classpath refid="exec-classpath"/>
+        </java>
+    </target>
+
+</project>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/build.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/deployment.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/deployment.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/deployment.xml	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,5 @@
+<jbossesb-deployment>
+    <depends>jboss.esb:deployment=soap.esb</depends>
+    <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_wsa_esb</depends>
+    <depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_wsa_esb_reply</depends>
+</jbossesb-deployment>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/deployment.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/images/client-console.png
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/images/client-console.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/images/esb-console.png
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/images/esb-console.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbm-queue-service.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbm-queue-service.xml	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+    <mbean code="org.jboss.jms.server.destination.QueueService"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_wsa_esb"
+           xmbean-dd="xmdesc/Queue-xmbean.xml">
+        <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+        <depends>jboss.messaging:service=PostOffice</depends>
+    </mbean>
+    <mbean code="org.jboss.jms.server.destination.QueueService"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_wsa_esb_reply"
+           xmbean-dd="xmdesc/Queue-xmbean.xml">
+        <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+        <depends>jboss.messaging:service=PostOffice</depends>
+    </mbean>
+</server>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbm-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbmq-queue-service.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbmq-queue-service.xml	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+    <mbean code="org.jboss.mq.server.jmx.Queue"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_wsa_esb">
+        <depends optional-attribute-name="DestinationManager">
+            jboss.mq:service=DestinationManager
+        </depends>
+    </mbean>
+    <mbean code="org.jboss.mq.server.jmx.Queue"
+           name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_webservice_wsa_esb_reply">
+        <depends optional-attribute-name="DestinationManager">
+            jboss.mq:service=DestinationManager
+        </depends>
+    </mbean>
+</server>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jbmq-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jboss-esb.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jboss-esb.xml	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,47 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb
+        xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
+        parameterReloadSecs="5">
+
+    <providers>
+        <jms-provider name="JBossMQ" connection-factory="ConnectionFactory"
+                      jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
+                      jndi-URL="localhost">
+            <jms-bus busid="quickstartEsbChannel">
+                <jms-message-filter dest-type="QUEUE" dest-name="queue/quickstart_webservice_wsa_esb"/>
+            </jms-bus>
+        </jms-provider>
+
+        <jbr-provider name="JBR-Http" protocol="http" host="localhost">
+            <jbr-bus busid="Http-1" port="8765" />
+        </jbr-provider>
+
+    </providers>
+
+    <services>
+
+        <service category="MyServiceCategory" name="MyWsaService" description="WS Frontend speaks natively to the ESB">
+
+            <listeners>
+                <jbr-listener name="Http-Gateway" busidref="Http-1" is-gateway="true" maxThreads="1"/>
+
+                <jms-listener name="JMS-ESBListener" busidref="quickstartEsbChannel" maxThreads="1"/>
+            </listeners>
+            <actions>
+                <action name="print-before" class="org.jboss.soa.esb.actions.SystemPrintln">
+                    <property name="message"
+                              value="[Quickstart_webservice_wsaddressing] Message before invoking jbossws endpoint"/>
+                </action>
+                <action name="JBossWSAdapter" class="org.jboss.soa.esb.actions.soap.SOAPProcessor">
+                    <property name="jbossws-endpoint" value="WsaEndpoint"/>
+                </action>
+                <action name="print-after" class="org.jboss.soa.esb.actions.SystemPrintln">
+                    <property name="message"
+                              value="[Quickstart_webservice_wsaddressing] Message after invoking jbossws endpoint"/>
+                </action>
+            </actions>
+        </service>
+
+    </services>
+
+</jbossesb>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jboss-esb.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jndi.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jndi.properties	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jndi.properties	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,5 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+java.naming.factory.url.pkgs=org.jnp.interfaces
+


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/jndi.properties
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/listener.log
===================================================================

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/log4j.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/log4j.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/log4j.xml	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Log4j Configuration                                                  -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<!-- $Id: log4j.xml,v 1.26.2.5 2005/09/15 09:31:02 dimitris Exp $ -->
+
+<!--
+   | For more configuration infromation and examples see the Jakarta Log4j
+   | owebsite: http://jakarta.apache.org/log4j
+ -->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+   <!-- ============================== -->
+   <!-- Append messages to the console -->
+   <!-- ============================== -->
+
+   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+      <param name="Target" value="System.out"/>
+
+      <layout class="org.apache.log4j.PatternLayout">
+         <!-- The default pattern: Date Priority [Category] Message\n -->
+         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t][%c{1}] %m%n"/>
+      </layout>
+   </appender>
+
+   <!-- ================================= -->
+   <!-- Preserve messages in a local file -->
+   <!-- ================================= -->
+
+   <!-- A size based file rolling appender -->
+   <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
+     <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+     <param name="File" value="./listener.log"/>
+     <param name="Append" value="false"/>
+     <param name="MaxFileSize" value="500KB"/>
+     <param name="MaxBackupIndex" value="1"/>
+
+     <layout class="org.apache.log4j.PatternLayout">
+       <param name="ConversionPattern" value="%d %-5p [%t][%c] %m%n"/>
+     </layout>	    
+   </appender>
+
+   <!-- ================ -->
+   <!-- Limit categories -->
+   <!-- ================ -->
+
+   <category name="org.jboss">
+      <priority value="WARN"/>
+   </category>
+   <category name="org.jboss.soa.esb">
+      <priority value="ERROR"/>
+   </category>
+   <category name="org.jboss.internal.soa.esb">
+      <priority value="ERROR"/>
+   </category>
+   <category name="org.apache">
+      <priority value="ERROR"/>
+   </category>
+   <category name="quickstart">
+      <priority value="INFO"/>
+   </category>
+   <!-- ======================= -->
+   <!-- Setup the Root category -->
+   <!-- ======================= -->
+
+   <root>
+      <appender-ref ref="CONSOLE"/>
+      <appender-ref ref="FILE"/>
+   </root>
+
+</log4j:configuration>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/log4j.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/ServerHandler.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/ServerHandler.java	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/ServerHandler.java	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,112 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, 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.soa.esb.samples.quickstart.webservicewsa;
+
+import java.net.URISyntaxException;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPElement;
+import javax.xml.ws.addressing.AddressingBuilder;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.EndpointReference;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import javax.xml.ws.addressing.ReferenceParameters;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.MessageContext.Scope;
+
+import org.jboss.logging.Logger;
+import org.jboss.wsf.spi.jaxws.handler.GenericSOAPHandler;
+import org.jboss.wsf.spi.utils.DOMUtils;
+
+/**
+ * A server side handler for the ws-addressing
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 24-Nov-2005
+ */
+public class ServerHandler extends GenericSOAPHandler
+{
+   // Provide logging
+   private static Logger log = Logger.getLogger(ServerHandler.class);
+
+   private static final QName IDQN = StatefulEndpointImpl.IDQN;
+
+   @Override
+   public boolean handleInbound(MessageContext msgContext)
+   {
+      log.info("handleRequest");
+
+      AddressingProperties addrProps = (AddressingProperties)msgContext.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+      if (addrProps == null)
+         throw new IllegalStateException("Cannot obtain AddressingProperties");
+
+      String clientid = null;
+      EndpointReference replyTo = addrProps.getReplyTo();
+      ReferenceParameters refParams = replyTo!=null ? replyTo.getReferenceParameters() : null;
+      if (refParams != null)
+      {
+         for (Object obj : refParams.getElements())
+         {
+            SOAPElement el = (SOAPElement)obj;
+            QName qname = DOMUtils.getElementQName(el);
+            if (qname.equals(IDQN))
+            {
+               clientid = DOMUtils.getTextContent(el);
+            }
+         }
+      }
+
+      if (clientid == null)
+         throw new IllegalStateException("Cannot obtain client id");
+
+      // put the clientid in the message context
+      msgContext.put("clientid", clientid);
+      msgContext.setScope("clientid", Scope.APPLICATION);
+      return true;
+   }
+
+   @Override
+   public boolean handleOutbound(MessageContext msgContext)
+   {
+      log.info("handleResponse");
+
+      try
+      {
+         AddressingProperties inProps = (AddressingProperties)msgContext.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
+         AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
+
+         builder.newAddressingConstants();
+         AddressingProperties outProps = builder.newAddressingProperties();
+         outProps.initializeAsReply(inProps, false);
+         outProps.setAction(builder.newURI("http://org.jboss.ws/addressing/stateful/actionReply"));
+
+         msgContext.put(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND, outProps);
+         msgContext.setScope(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_OUTBOUND, Scope.APPLICATION);
+      }
+      catch (URISyntaxException ex)
+      {
+         throw new IllegalStateException("Cannot handle response", ex);
+      }
+
+      return true;
+   }
+}


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/ServerHandler.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpoint.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpoint.java	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpoint.java	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, 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.soa.esb.samples.quickstart.webservicewsa;
+
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.ws.annotation.EndpointConfig;
+
+/**
+ * WS-Addressing stateful service endpoint interface
+ *
+ * @author Thomas.Diesler at jboss.org
+ *
+ * @since 24-Nov-2005
+ */
+ at WebService(name = "WsaEndpoint", targetNamespace = "http://webservice.webservicewsa.quickstart.samples.esb.soa.jboss.org/", serviceName = "WsaService")
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface StatefulEndpoint extends Remote
+{
+   @WebMethod
+   public void addItem(String item) throws RemoteException;
+
+   @WebMethod
+   public void checkout() throws RemoteException;
+
+   @WebMethod
+   public String getItems() throws RemoteException;
+}


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpoint.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpointImpl.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpointImpl.java	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpointImpl.java	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,112 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, 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.soa.esb.samples.quickstart.webservicewsa;
+
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.annotation.Resource;
+import javax.jws.HandlerChain;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.namespace.QName;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.handler.MessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.annotation.EndpointConfig;
+
+/**
+ * WS-Addressing stateful service endpoint
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 24-Nov-2005
+ */
+ at WebService(name = "WsaEndpoint", targetNamespace = "http://webservice.webservicewsa.quickstart.samples.esb.soa.jboss.org/", serviceName = "WsaService")
+ at EndpointConfig(configName = "Standard WSAddressing Endpoint")
+ at HandlerChain(file = "jaxws-handlers.xml")
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+public class StatefulEndpointImpl implements StatefulEndpoint
+{
+   // provide logging
+   private static Logger log = Logger.getLogger(StatefulEndpointImpl.class);
+
+   public static final QName IDQN = new QName("http://somens", "clientid", "ns1");
+
+   // The state map for all clients
+   private static Map<String, List<String>> clientStateMap = new HashMap<String, List<String>>();
+
+   private String clientid;
+   private static List<String> items;
+   private WebServiceContext context;
+
+   @Resource
+   public void setContext(WebServiceContext context)
+   {
+      log.info("injecting: " + context);
+      this.context = context;
+   }
+
+   @WebMethod
+   public void addItem(String item)
+   {
+      initSessionState();
+      log.info("addItem [clientid=" + clientid + "]: " + item);
+      items.add(item);
+   }
+
+   @WebMethod
+   public void checkout()
+   {
+      initSessionState();
+      log.info("checkout [clientid=" + clientid + "]");
+      clientStateMap.remove(clientid);
+   }
+
+   @WebMethod
+   public String getItems()
+   {
+      initSessionState();
+      log.info("getItems [clientid=" + clientid + "]: " + items);
+      return items.toString();
+   }
+
+   private void initSessionState()
+   {
+      MessageContext msgContext = context.getMessageContext();
+      clientid = (String)msgContext.get("clientid");
+      if (clientid == null)
+         throw new IllegalStateException("Cannot obtain clientid");
+
+      // Get the client's items
+      items = clientStateMap.get(clientid);
+      if (items == null)
+      {
+         items = new ArrayList<String>();
+         clientStateMap.put(clientid, items);
+      }
+   }
+}


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/StatefulEndpointImpl.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/ClientHandler.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/ClientHandler.java	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/ClientHandler.java	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,129 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, 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.soa.esb.samples.quickstart.webservicewsa.client;
+
+import java.net.URI;
+import java.net.URISyntaxException;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPHeaderElement;
+import javax.xml.ws.addressing.AddressingBuilder;
+import javax.xml.ws.addressing.AddressingConstants;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.addressing.EndpointReference;
+import javax.xml.ws.addressing.JAXWSAConstants;
+import javax.xml.ws.addressing.ReferenceParameters;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.MessageContext.Scope;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.utils.UUIDGenerator;
+import org.jboss.wsf.spi.jaxws.handler.GenericSOAPHandler;
+import org.jboss.wsf.spi.utils.DOMUtils;
+import org.jboss.soa.esb.samples.quickstart.webservicewsa.StatefulEndpointImpl;
+
+/**
+ * A client side handler for the ws-addressing
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 24-Nov-2005
+ */
+public class ClientHandler extends GenericSOAPHandler
+{
+   // Provide logging
+   private static Logger log = Logger.getLogger(ClientHandler.class);
+
+   private static final QName IDQN = StatefulEndpointImpl.IDQN;
+
+   private static int maxClientId;
+   private String clientid;
+
+   @Override
+   public boolean handleOutbound(MessageContext msgContext)
+   {
+      try
+      {
+         AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
+         AddressingConstants ADDR = builder.newAddressingConstants();
+
+         AddressingProperties outProps = builder.newAddressingProperties();
+         outProps.setTo(builder.newURI("uri:jaxrpc-samples-wsaddressing/TestService"));
+         outProps.setAction(builder.newURI("http://org.jboss.ws/addressing/stateful/action"));
+
+         EndpointReference replyTo = builder.newEndpointReference(new URI(ADDR.getAnonymousURI()));
+         outProps.setReplyTo(replyTo);
+         outProps.setMessageID(builder.newURI("urn:uuid:"+ UUIDGenerator.generateRandomUUIDString()));
+
+         // Assign a new clientid
+         if (clientid == null)
+         {
+            clientid = "clientid-" + (++maxClientId);
+            log.info("New clientid: " + clientid);
+         }
+
+         ReferenceParameters refParams = replyTo.getReferenceParameters();
+         refParams.addElement(getClientIdElement(clientid));
+
+         msgContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, outProps);
+         msgContext.setScope(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, Scope.APPLICATION);
+      }
+      catch (URISyntaxException ex)
+      {
+         throw new IllegalStateException("Cannot handle request", ex);
+      }
+
+      return true;
+   }
+
+   @Override
+   public boolean handleInbound(MessageContext msgContext)
+   {
+      AddressingProperties addrProps = (AddressingProperties)msgContext.get(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_INBOUND);
+      if (addrProps == null)
+         throw new IllegalStateException("Cannot obtain AddressingProperties");
+
+      ReferenceParameters refParams = addrProps.getReferenceParameters();
+      for (Object obj : refParams.getElements())
+      {
+         SOAPHeaderElement el = (SOAPHeaderElement)obj;
+         QName qname = DOMUtils.getElementQName(el);
+         if (qname.equals(IDQN))
+         {
+            clientid = DOMUtils.getTextContent(el);
+         }
+      }
+
+      if (clientid == null)
+         throw new IllegalStateException("Cannot obtain clientid");
+
+      return true;
+   }
+
+   private String getClientIdElement(String clientid)
+   {
+      String qualname = IDQN.getPrefix() + ":" + IDQN.getLocalPart();
+      StringBuffer buffer = new StringBuffer("<" + qualname);
+      buffer.append(" xmlns:" + IDQN.getPrefix() + "='" + IDQN.getNamespaceURI() + "'");
+      buffer.append(">" + clientid + "</" + qualname + ">");
+      return buffer.toString();
+   }
+}


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/ClientHandler.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/WSAClient.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/WSAClient.java	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/WSAClient.java	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,88 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA  02110-1301, USA.
+ *
+ * (C) 2005-2006, JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.webservicewsa.client;
+
+import org.jboss.soa.esb.samples.quickstart.webservicewsa.StatefulEndpoint;
+import org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.handler.Handler;
+import javax.xml.ws.soap.SOAPBinding;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.*;
+import java.rmi.RemoteException;
+
+/**
+ * WSA Client.
+ * <p/>
+ * The basis of this code was lifted from JBossWS test code.  Thanks guys :-)
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class WSAClient {
+
+    public static void main(String[] args) throws MalformedURLException, RemoteException {
+        StatefulEndpoint endpointPort1 = getEndpointPort();
+        StatefulEndpoint endpointPort2 = getEndpointPort();
+
+        endpointPort1.addItem("Ice Cream");
+        endpointPort1.addItem("Chocolate");
+
+        endpointPort2.addItem("Water");
+        endpointPort2.addItem("Bread");
+
+        System.out.println("\nT1. endpointPort1 basket: " + endpointPort1.getItems());
+        System.out.println("T1. endpointPort2 basket: " + endpointPort2.getItems());
+
+        System.out.println("\nT2. endpointPort1 checks out...");
+        endpointPort1.checkout();
+
+        System.out.println("\nT3. endpointPort1 basket: " + endpointPort1.getItems());
+        System.out.println("T3. endpointPort2 basket: " + endpointPort2.getItems());
+
+        System.out.println("\nT4. endpointPort2 checks out...");
+        endpointPort2.checkout();
+
+        System.out.println("\nT5. endpointPort1 basket: " + endpointPort1.getItems());
+        System.out.println("T5. endpointPort2 basket: " + endpointPort2.getItems());
+    }
+
+    private static StatefulEndpoint getEndpointPort() throws MalformedURLException {
+        StatefulEndpoint endpoint;
+        QName serviceName = new QName("http://webservice.webservicewsa.quickstart.samples.esb.soa.jboss.org/", "WsaService");
+        URL wsdlURL = new URL("http://localhost:8080/contract/contract.jsp?serviceCat=MyServiceCategory&serviceName=MyWsaService&protocol=http");
+
+        Service service = Service.create(wsdlURL, serviceName);
+        endpoint = service.getPort(StatefulEndpoint.class);
+
+        SOAPBinding binding = (SOAPBinding)((BindingProvider)endpoint).getBinding();
+        List<Handler> handlerChain = new ArrayList<Handler>();
+
+        handlerChain.addAll(binding.getHandlerChain());
+        handlerChain.add(new ClientHandler());
+        handlerChain.add(new WSAddressingClientHandler());
+        binding.setHandlerChain(handlerChain);
+
+        return endpoint;
+    }
+}


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/client/WSAClient.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/jaxws-handlers.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/jaxws-handlers.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/jaxws-handlers.xml	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+  
+  <handler-chain>
+    <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+    <handler>
+      <handler-name>Application Server Handler</handler-name>
+      <handler-class>org.jboss.soa.esb.samples.quickstart.webservicewsa.ServerHandler</handler-class>
+    </handler>
+  </handler-chain>
+</handler-chains>
\ No newline at end of file


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/src/org/jboss/soa/esb/samples/quickstart/webservicewsa/jaxws-handlers.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/resources/WEB-INF/web.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/resources/WEB-INF/web.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/resources/WEB-INF/web.xml	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<web-app 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"
+         version="2.4">
+
+    <servlet>
+        <servlet-name>WsaEndpoint</servlet-name>
+        <servlet-class>org.jboss.soa.esb.samples.quickstart.webservicewsa.StatefulEndpointImpl</servlet-class>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>WsaEndpoint</servlet-name>
+        <url-pattern>/WsaEndpoint</url-pattern>
+    </servlet-mapping>
+
+</web-app>


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/resources/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/view/index.jsp
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/view/index.jsp	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_wsaddressing/war/view/index.jsp	2007-09-11 13:09:12 UTC (rev 15014)
@@ -0,0 +1,9 @@
+<html>
+	<body>
+		This is just a place holder.<br>
+		Verify the that the WS has been deployed by hitting 
+			<a href="http://localhost:8080/jbossws">
+				http://localhost:8080/jbossws
+			</a>
+  </body>
+</html>	
\ No newline at end of file


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/wiretap
___________________________________________________________________
Name: svn:ignore
   - jbossesb-gateway.xml
jbossesb-listener.xml
build
lib

   + jbossesb-gateway.xml
jbossesb-listener.xml
build
lib
listener.log


Added: labs/jbossesb/trunk/product/services/soap/lib/ext/build-time/jboss-saaj.jar
===================================================================
(Binary files differ)


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

Modified: labs/jbossesb/trunk/product/services/soap/lib/ext/build-time/jbossall-client.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossesb/trunk/product/tools
___________________________________________________________________
Name: svn:ignore
   + contract





More information about the jboss-svn-commits mailing list