[jboss-svn-commits] JBL Code SVN: r25092 - in labs/jbossesb/workspace/mlittle/legstar: product/rosetta/src/org/jboss/soa/esb/listeners and 7 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Feb 4 02:17:58 EST 2009


Author: jim.ma
Date: 2009-02-04 02:17:57 -0500 (Wed, 04 Feb 2009)
New Revision: 25092

Added:
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF/
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF/jboss-esb.xml
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbm-service.xml
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbmq-service.xml
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/request.xsd
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/response.xsd
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/test-ebws-service.xml
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServer.java
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServerMBean.java
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUnitTest.java
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUtil.java
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/LogMessageAction.java
Removed:
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF/
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF/jboss-esb.xml
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbm-service.xml
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbmq-service.xml
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/request.xsd
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/response.xsd
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/test-ebws-service.xml
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServer.java
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServerMBean.java
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUnitTest.java
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUtil.java
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/LogMessageAction.java
Modified:
   labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/addressing/eprs/HTTPEpr.java
   labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/listeners/ListenerUtil.java
   labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/listeners/config/mappers110/ESBAwareGenerator.java
   labs/jbossesb/workspace/mlittle/legstar/qa/junit/build.xml
Log:
Committed the files which missed in previous commit

Modified: labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/addressing/eprs/HTTPEpr.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/addressing/eprs/HTTPEpr.java	2009-02-04 07:12:07 UTC (rev 25091)
+++ labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/addressing/eprs/HTTPEpr.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -43,7 +43,7 @@
  */
 public class HTTPEpr extends EPR
 {
-	
+
 	public HTTPEpr (EPR epr)
 	{
 		super(epr);

Modified: labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/listeners/ListenerUtil.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/listeners/ListenerUtil.java	2009-02-04 07:12:07 UTC (rev 25091)
+++ labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/listeners/ListenerUtil.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -82,8 +82,6 @@
 		{
             if (InVMEpr.INVM_PROTOCOL.equals(protocol))
                 return inVMEprFromElement(tree);
-            if ("http".equals(protocol))
-				return httpEprFromElement(tree);
 			if ("jms".equals(protocol))
 				return jmsEprFromElement(tree);
 			if ("file".equals(protocol))
@@ -134,24 +132,6 @@
         }
     }
 
-    public static HTTPEpr httpEprFromElement (ConfigTree tree) throws ConfigurationException
-    {
-
-        String protocol = tree.getRequiredAttribute(ListenerTagNames.PROTOCOL_TAG);
-		String host = tree.getRequiredAttribute(ListenerTagNames.HOST_TAG);
-		String port = tree.getRequiredAttribute(ListenerTagNames.PORT_TAG);
-		String context = tree.getRequiredAttribute(ListenerTagNames.CONTEXT_TAG);
-        String uri = protocol + "://" + host + ":" + port + context;
-        try {
-			return new HTTPEpr(new URI(uri));
-		} catch (URISyntaxException e) {
-			new ConfigurationException("Error when create HTTPEpr : " + uri);
-		}
-        return null;
-    }
-    
-    
-    
 	public static JMSEpr jmsEprFromElement(ConfigTree tree)
 			throws ConfigurationException
 	{

Modified: labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/listeners/config/mappers110/ESBAwareGenerator.java
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/listeners/config/mappers110/ESBAwareGenerator.java	2009-02-04 07:12:07 UTC (rev 25091)
+++ labs/jbossesb/workspace/mlittle/legstar/product/rosetta/src/org/jboss/soa/esb/listeners/config/mappers110/ESBAwareGenerator.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -212,9 +212,9 @@
             return;
         } else if (listener instanceof GroovyListener) {
             listenerConfigTree = GroovyListenerMapper.map(root, (GroovyListener)listener, model);
-		        } else {
-			            listenerConfigTree = UntypedListenerMapper.map(root, listener, model);
-		        }
+		               } else {
+			                        listenerConfigTree = UntypedListenerMapper.map(root, listener, model);
+		               }
 
         if (listener instanceof AbstractScheduledListener) {
             ScheduleMapper.map(listenerConfigTree, (AbstractScheduledListener) listener, model);

Modified: labs/jbossesb/workspace/mlittle/legstar/qa/junit/build.xml
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/build.xml	2009-02-04 07:12:07 UTC (rev 25091)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/build.xml	2009-02-04 07:17:57 UTC (rev 25092)
@@ -161,6 +161,17 @@
           <include name="META-INF/*.xml"/>
        </fileset>
     </jar>
+      <jar jarfile="${qa.build.lib}/ebws-test.esb">
+         <fileset dir="${qa.junit.classes}">
+            <include name="org/jboss/soa/esb/server/ebws/*.class"/>
+         </fileset>
+         <fileset dir="${qa.junit.resources}/server/ebws">
+            <include name="test*.xml"/>
+            <include name="*.xsd"/>
+            <include name="esb-${org.jboss.soa.esb.qa.jmsprovider}-service.xml"/>
+            <include name="META-INF/*.xml"/>
+         </fileset>
+      </jar>
    </target>
 
    <target name="one-test" if="test" depends="jars"

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws (from rev 25084, labs/jbossesb/trunk/qa/junit/resources/server/ebws)

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF (from rev 25084, labs/jbossesb/trunk/qa/junit/resources/server/ebws/META-INF)

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/qa/junit/resources/server/ebws/META-INF/jboss-esb.xml	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF/jboss-esb.xml	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,43 +0,0 @@
-<?xml version = "1.0" encoding = "UTF-8"?>
-<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.1.0.xsd">
-  <providers>
-    <jms-jca-provider name="JBossMQ" connection-factory="ConnectionFactory">
-      <jms-bus busid="ebws_channel1">
-        <jms-message-filter dest-type="QUEUE" dest-name="queue/ebws1"/>
-      </jms-bus>
-      <jms-bus busid="ebws_channel2">
-        <jms-message-filter dest-type="QUEUE" dest-name="queue/ebws2"/>
-      </jms-bus>
-      <jms-bus busid="ebws_channel3">
-        <jms-message-filter dest-type="QUEUE" dest-name="queue/ebws3"/>
-      </jms-bus>
-    </jms-jca-provider>
-  </providers>
-
-  <services>
-    <service category="TestEBWS" name="normal" description="EBWS service">
-      <listeners>
-        <jms-listener name="JBPM-ESBListener" busidref="ebws_channel1" maxThreads="1"/>
-      </listeners>
-      <actions inXsd='/request.xsd' outXsd='/response.xsd' validate='true'>
-        <action name="logAction" class="org.jboss.soa.esb.server.ebws.LogMessageAction"/>
-      </actions>
-    </service>
-    <service category="TestEBWS" name="alternate" description="EBWS service">
-      <listeners>
-        <jms-listener name="JBPM-ESBListener" busidref="ebws_channel2" maxThreads="1"/>
-      </listeners>
-      <actions inXsd='/request.xsd' outXsd='/response.xsd' validate='true' requestLocation='REQUEST_LOCATION' responseLocation='RESPONSE_LOCATION'>
-        <action name="logAction" class="org.jboss.soa.esb.server.ebws.LogMessageAction"/>
-      </actions>
-    </service>
-    <service category="TestEBWS" name="addressing" description="EBWS addressing service">
-      <listeners>
-        <jms-listener name="JBPM-ESBListener" busidref="ebws_channel3" maxThreads="1"/>
-      </listeners>
-      <actions inXsd='/request.xsd' outXsd='/response.xsd' validate='true' requestLocation='REQUEST_LOCATION' responseLocation='RESPONSE_LOCATION' addressing='true'>
-        <action name="logAction" class="org.jboss.soa.esb.server.ebws.LogMessageAction"/>
-      </actions>
-    </service>
-  </services>
-</jbossesb>

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF/jboss-esb.xml (from rev 25084, labs/jbossesb/trunk/qa/junit/resources/server/ebws/META-INF/jboss-esb.xml)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF/jboss-esb.xml	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/META-INF/jboss-esb.xml	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,43 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.1.0.xsd">
+  <providers>
+    <jms-jca-provider name="JBossMQ" connection-factory="ConnectionFactory">
+      <jms-bus busid="ebws_channel1">
+        <jms-message-filter dest-type="QUEUE" dest-name="queue/ebws1"/>
+      </jms-bus>
+      <jms-bus busid="ebws_channel2">
+        <jms-message-filter dest-type="QUEUE" dest-name="queue/ebws2"/>
+      </jms-bus>
+      <jms-bus busid="ebws_channel3">
+        <jms-message-filter dest-type="QUEUE" dest-name="queue/ebws3"/>
+      </jms-bus>
+    </jms-jca-provider>
+  </providers>
+
+  <services>
+    <service category="TestEBWS" name="normal" description="EBWS service">
+      <listeners>
+        <jms-listener name="JBPM-ESBListener" busidref="ebws_channel1" maxThreads="1"/>
+      </listeners>
+      <actions inXsd='/request.xsd' outXsd='/response.xsd' validate='true'>
+        <action name="logAction" class="org.jboss.soa.esb.server.ebws.LogMessageAction"/>
+      </actions>
+    </service>
+    <service category="TestEBWS" name="alternate" description="EBWS service">
+      <listeners>
+        <jms-listener name="JBPM-ESBListener" busidref="ebws_channel2" maxThreads="1"/>
+      </listeners>
+      <actions inXsd='/request.xsd' outXsd='/response.xsd' validate='true' requestLocation='REQUEST_LOCATION' responseLocation='RESPONSE_LOCATION'>
+        <action name="logAction" class="org.jboss.soa.esb.server.ebws.LogMessageAction"/>
+      </actions>
+    </service>
+    <service category="TestEBWS" name="addressing" description="EBWS addressing service">
+      <listeners>
+        <jms-listener name="JBPM-ESBListener" busidref="ebws_channel3" maxThreads="1"/>
+      </listeners>
+      <actions inXsd='/request.xsd' outXsd='/response.xsd' validate='true' requestLocation='REQUEST_LOCATION' responseLocation='RESPONSE_LOCATION' addressing='true'>
+        <action name="logAction" class="org.jboss.soa.esb.server.ebws.LogMessageAction"/>
+      </actions>
+    </service>
+  </services>
+</jbossesb>

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbm-service.xml
===================================================================
--- labs/jbossesb/trunk/qa/junit/resources/server/ebws/esb-jbm-service.xml	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbm-service.xml	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-   <mbean code="org.jboss.jms.server.destination.QueueService"
-      name="jboss.esb.qa.junit.destination:service=Queue,name=ebws1"
-      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.qa.junit.destination:service=Queue,name=ebws1_reply"
-      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.qa.junit.destination:service=Queue,name=ebws2"
-      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.qa.junit.destination:service=Queue,name=ebws2_reply"
-      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.qa.junit.destination:service=Queue,name=ebws3"
-      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.qa.junit.destination:service=Queue,name=ebws3_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>

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbm-service.xml (from rev 25084, labs/jbossesb/trunk/qa/junit/resources/server/ebws/esb-jbm-service.xml)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbm-service.xml	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbm-service.xml	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+   <mbean code="org.jboss.jms.server.destination.QueueService"
+      name="jboss.esb.qa.junit.destination:service=Queue,name=ebws1"
+      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.qa.junit.destination:service=Queue,name=ebws1_reply"
+      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.qa.junit.destination:service=Queue,name=ebws2"
+      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.qa.junit.destination:service=Queue,name=ebws2_reply"
+      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.qa.junit.destination:service=Queue,name=ebws3"
+      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.qa.junit.destination:service=Queue,name=ebws3_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>

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbmq-service.xml
===================================================================
--- labs/jbossesb/trunk/qa/junit/resources/server/ebws/esb-jbmq-service.xml	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbmq-service.xml	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<server>
-  <mbean code="org.jboss.mq.server.jmx.Queue"
-    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws1">
-    <depends optional-attribute-name="DestinationManager">
-      jboss.mq:service=DestinationManager
-    </depends>
-  </mbean>
-  <mbean code="org.jboss.mq.server.jmx.Queue"
-    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws1_reply">
-    <depends optional-attribute-name="DestinationManager">
-      jboss.mq:service=DestinationManager
-    </depends>
-  </mbean>
-  <mbean code="org.jboss.mq.server.jmx.Queue"
-    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws2">
-    <depends optional-attribute-name="DestinationManager">
-      jboss.mq:service=DestinationManager
-    </depends>
-  </mbean>
-  <mbean code="org.jboss.mq.server.jmx.Queue"
-    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws2_reply">
-    <depends optional-attribute-name="DestinationManager">
-      jboss.mq:service=DestinationManager
-    </depends>
-  </mbean>
-  <mbean code="org.jboss.mq.server.jmx.Queue"
-    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws3">
-    <depends optional-attribute-name="DestinationManager">
-      jboss.mq:service=DestinationManager
-    </depends>
-  </mbean>
-  <mbean code="org.jboss.mq.server.jmx.Queue"
-    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws3_reply">
-    <depends optional-attribute-name="DestinationManager">
-      jboss.mq:service=DestinationManager
-    </depends>
-  </mbean>
-</server>

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbmq-service.xml (from rev 25084, labs/jbossesb/trunk/qa/junit/resources/server/ebws/esb-jbmq-service.xml)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbmq-service.xml	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/esb-jbmq-service.xml	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+  <mbean code="org.jboss.mq.server.jmx.Queue"
+    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws1">
+    <depends optional-attribute-name="DestinationManager">
+      jboss.mq:service=DestinationManager
+    </depends>
+  </mbean>
+  <mbean code="org.jboss.mq.server.jmx.Queue"
+    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws1_reply">
+    <depends optional-attribute-name="DestinationManager">
+      jboss.mq:service=DestinationManager
+    </depends>
+  </mbean>
+  <mbean code="org.jboss.mq.server.jmx.Queue"
+    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws2">
+    <depends optional-attribute-name="DestinationManager">
+      jboss.mq:service=DestinationManager
+    </depends>
+  </mbean>
+  <mbean code="org.jboss.mq.server.jmx.Queue"
+    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws2_reply">
+    <depends optional-attribute-name="DestinationManager">
+      jboss.mq:service=DestinationManager
+    </depends>
+  </mbean>
+  <mbean code="org.jboss.mq.server.jmx.Queue"
+    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws3">
+    <depends optional-attribute-name="DestinationManager">
+      jboss.mq:service=DestinationManager
+    </depends>
+  </mbean>
+  <mbean code="org.jboss.mq.server.jmx.Queue"
+    name="jboss.esb.qa.junit.destination:service=Queue,name=ebws3_reply">
+    <depends optional-attribute-name="DestinationManager">
+      jboss.mq:service=DestinationManager
+    </depends>
+  </mbean>
+</server>

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/request.xsd
===================================================================
--- labs/jbossesb/trunk/qa/junit/resources/server/ebws/request.xsd	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/request.xsd	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,8 +0,0 @@
-<xs:schema version="1.0" targetNamespace="http://www.jboss.org/sayHi" xmlns:x1="http://www.jboss.org/sayHi"  xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
-  <xs:element name="sayHi" type="x1:sayHi"/>
-  <xs:complexType name="sayHi">
-    <xs:sequence>
-      <xs:element name="arg0" type="xs:string" minOccurs="0"/>
-    </xs:sequence>
-  </xs:complexType>
-</xs:schema>

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/request.xsd (from rev 25084, labs/jbossesb/trunk/qa/junit/resources/server/ebws/request.xsd)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/request.xsd	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/request.xsd	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,8 @@
+<xs:schema version="1.0" targetNamespace="http://www.jboss.org/sayHi" xmlns:x1="http://www.jboss.org/sayHi"  xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+  <xs:element name="sayHi" type="x1:sayHi"/>
+  <xs:complexType name="sayHi">
+    <xs:sequence>
+      <xs:element name="arg0" type="xs:string" minOccurs="0"/>
+    </xs:sequence>
+  </xs:complexType>
+</xs:schema>

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/response.xsd
===================================================================
--- labs/jbossesb/trunk/qa/junit/resources/server/ebws/response.xsd	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/response.xsd	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,8 +0,0 @@
-<xs:schema version="1.0" targetNamespace="http://www.jboss.org/sayHi" xmlns:x1="http://www.jboss.org/sayHi"  xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
-  <xs:element name="sayHiResponse" type="x1:sayHiResponse"/>
-  <xs:complexType name="sayHiResponse">
-    <xs:sequence>
-      <xs:element name="arg0" type="xs:string" minOccurs="0"/>
-    </xs:sequence>
-  </xs:complexType>
-</xs:schema>

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/response.xsd (from rev 25084, labs/jbossesb/trunk/qa/junit/resources/server/ebws/response.xsd)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/response.xsd	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/response.xsd	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,8 @@
+<xs:schema version="1.0" targetNamespace="http://www.jboss.org/sayHi" xmlns:x1="http://www.jboss.org/sayHi"  xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+  <xs:element name="sayHiResponse" type="x1:sayHiResponse"/>
+  <xs:complexType name="sayHiResponse">
+    <xs:sequence>
+      <xs:element name="arg0" type="xs:string" minOccurs="0"/>
+    </xs:sequence>
+  </xs:complexType>
+</xs:schema>

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/test-ebws-service.xml
===================================================================
--- labs/jbossesb/trunk/qa/junit/resources/server/ebws/test-ebws-service.xml	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/test-ebws-service.xml	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<server>
-   <mbean name="jboss.esb:test=EBWSServer" code="org.jboss.soa.esb.server.ebws.EBWSServer"/>
-</server>

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/test-ebws-service.xml (from rev 25084, labs/jbossesb/trunk/qa/junit/resources/server/ebws/test-ebws-service.xml)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/test-ebws-service.xml	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/resources/server/ebws/test-ebws-service.xml	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean name="jboss.esb:test=EBWSServer" code="org.jboss.soa.esb.server.ebws.EBWSServer"/>
+</server>

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws (from rev 25084, labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws)

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServer.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServer.java	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServer.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,94 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, 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.server.ebws;
-
-import java.util.ArrayList;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.locks.Condition;
-import java.util.concurrent.locks.Lock;
-import java.util.concurrent.locks.ReentrantLock;
-
-/**
- * MBean to monitor EBWS messages.
- *
- * @author <a href="kevin.conner at jboss.com">Kevin Conner</a>
- */
-public class EBWSServer implements EBWSServerMBean
-{
-    private final ArrayList<String> list = new ArrayList<String>() ;
-    private final Lock lock = new ReentrantLock() ;
-    private final Condition waitCondition = lock.newCondition() ;
-    
-    public String[] waitForMessages(final int numberOfMessages)
-    {
-        final long startTime = System.currentTimeMillis() ;
-        final long endTime = startTime + 30000 ;
-        lock.lock() ;
-        try
-        {
-            while (list.size() != numberOfMessages)
-            {
-                final long now = System.currentTimeMillis() ;
-                final long waitPeriod = endTime - now ;
-                if (waitPeriod > 0)
-                {
-                    try
-                    {
-                        waitCondition.await(waitPeriod, TimeUnit.MILLISECONDS) ;
-                    }
-                    catch (final InterruptedException ie) {} // ignore
-                }
-                else
-                {
-                    break ;
-                }
-            }
-            final String[] results = list.toArray(new String[0]) ;
-            list.clear() ;
-            final int numResults = results.length ;
-            for(int count = 0 ; count < numResults ; count++)
-            {
-                System.out.println("EBWS Server: Returning message[" + count + "]: " + results[count]) ;
-            }
-            return results ;
-        }
-        finally
-        {
-            lock.unlock() ;
-        }
-    }
-
-    public void logMessage(final String message)
-    {
-        lock.lock() ;
-        try
-        {
-            list.add(message) ;
-            System.out.println("EBWS Server: Adding message: " + message) ;
-            waitCondition.signal() ;
-        }
-        finally
-        {
-            lock.unlock() ;
-        }
-    }
-}

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServer.java (from rev 25084, labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServer.java)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServer.java	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServer.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,94 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, 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.server.ebws;
+
+import java.util.ArrayList;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.locks.Condition;
+import java.util.concurrent.locks.Lock;
+import java.util.concurrent.locks.ReentrantLock;
+
+/**
+ * MBean to monitor EBWS messages.
+ *
+ * @author <a href="kevin.conner at jboss.com">Kevin Conner</a>
+ */
+public class EBWSServer implements EBWSServerMBean
+{
+    private final ArrayList<String> list = new ArrayList<String>() ;
+    private final Lock lock = new ReentrantLock() ;
+    private final Condition waitCondition = lock.newCondition() ;
+    
+    public String[] waitForMessages(final int numberOfMessages)
+    {
+        final long startTime = System.currentTimeMillis() ;
+        final long endTime = startTime + 30000 ;
+        lock.lock() ;
+        try
+        {
+            while (list.size() != numberOfMessages)
+            {
+                final long now = System.currentTimeMillis() ;
+                final long waitPeriod = endTime - now ;
+                if (waitPeriod > 0)
+                {
+                    try
+                    {
+                        waitCondition.await(waitPeriod, TimeUnit.MILLISECONDS) ;
+                    }
+                    catch (final InterruptedException ie) {} // ignore
+                }
+                else
+                {
+                    break ;
+                }
+            }
+            final String[] results = list.toArray(new String[0]) ;
+            list.clear() ;
+            final int numResults = results.length ;
+            for(int count = 0 ; count < numResults ; count++)
+            {
+                System.out.println("EBWS Server: Returning message[" + count + "]: " + results[count]) ;
+            }
+            return results ;
+        }
+        finally
+        {
+            lock.unlock() ;
+        }
+    }
+
+    public void logMessage(final String message)
+    {
+        lock.lock() ;
+        try
+        {
+            list.add(message) ;
+            System.out.println("EBWS Server: Adding message: " + message) ;
+            waitCondition.signal() ;
+        }
+        finally
+        {
+            lock.unlock() ;
+        }
+    }
+}

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServerMBean.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServerMBean.java	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServerMBean.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,36 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, 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.server.ebws;
-
-/**
- * MBean to monitor EBWS messages.
- *
- * @author <a href="kevin.conner at jboss.com">Kevin Conner</a>
- */
-public interface EBWSServerMBean
-{
-   public static final String OBJECT_NAME = "jboss.esb:test=EBWSServer";
-
-   public String[] waitForMessages(final int numberOfMessages) ;
-
-   public void logMessage(final String message) ;
-}

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServerMBean.java (from rev 25084, labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServerMBean.java)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServerMBean.java	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSServerMBean.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,36 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, 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.server.ebws;
+
+/**
+ * MBean to monitor EBWS messages.
+ *
+ * @author <a href="kevin.conner at jboss.com">Kevin Conner</a>
+ */
+public interface EBWSServerMBean
+{
+   public static final String OBJECT_NAME = "jboss.esb:test=EBWSServer";
+
+   public String[] waitForMessages(final int numberOfMessages) ;
+
+   public void logMessage(final String message) ;
+}

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUnitTest.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUnitTest.java	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUnitTest.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,297 +0,0 @@
-/*
- * 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.server.ebws;
-
-import javax.management.ObjectName;
-
-import junit.framework.Test;
-
-import org.apache.commons.httpclient.HttpClient;
-import org.apache.commons.httpclient.methods.PostMethod;
-import org.apache.commons.httpclient.methods.StringRequestEntity;
-import org.jboss.soa.esb.client.ServiceInvoker;
-import org.jboss.soa.esb.couriers.FaultMessageException;
-import org.jboss.soa.esb.listeners.message.MessageValidationException;
-import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.esb.message.format.MessageFactory;
-import org.jboss.soa.esb.testutils.StringUtils;
-import org.jboss.test.JBossTestCase;
-
-/**
- * Test EBWS invocations.
- * 
- * @author <a href='mailto:kevin.conner at jboss.com'>Kevin Conner</a>
- */
-public class EBWSUnitTest extends JBossTestCase
-{
-    /**
-     * The name of the deployment archive.
-     */
-    private static final String ESB_ARCHIVE = "ebws-test.esb" ;
-    
-    /**
-     * Construct the test case with the specified name.
-     * @param name The name of the test case.
-     */
-    public EBWSUnitTest(final String name)
-    {
-        super(name) ;
-    }
-    
-    /**
-     * Test for normal request/response.
-     * @throws Exception For any failures.
-     */
-    public void testNormalRequestResponse()
-        throws Exception
-    {
-        runRequestResponseTest(null, null, EBWSUtil.NORMAL_SERVICE) ;
-    }
-    
-    /**
-     * Test for alternate request/response.
-     * @throws Exception For any failures.
-     */
-    public void testAlternateRequestResponse()
-        throws Exception
-    {
-        runRequestResponseTest(EBWSUtil.REQUEST_LOCATION, EBWSUtil.RESPONSE_LOCATION, EBWSUtil.ALTERNATE_SERVICE) ;
-    }
-    
-    /**
-     * Test for normal invalid request.
-     * @throws Exception For any failures.
-     */
-    public void testNormalInvalidRequest()
-        throws Exception
-    {
-        runInvalidRequestTest(null, EBWSUtil.NORMAL_SERVICE) ;
-    }
-    
-    /**
-     * Test for alternate invalid request.
-     * @throws Exception For any failures.
-     */
-    public void testAlternateInvalidRequest()
-        throws Exception
-    {
-        runInvalidRequestTest(EBWSUtil.REQUEST_LOCATION, EBWSUtil.ALTERNATE_SERVICE) ;
-    }
-    
-    /**
-     * Test for normal invalid response.
-     * @throws Exception For any failures.
-     */
-    public void testNormalInvalidResponse()
-        throws Exception
-    {
-        runInvalidResponseTest(null, EBWSUtil.NORMAL_SERVICE) ;
-    }
-    
-    /**
-     * Test for alternate invalid response.
-     * @throws Exception For any failures.
-     */
-    public void testAlternateInvalidResponse()
-        throws Exception
-    {
-        runInvalidResponseTest(EBWSUtil.REQUEST_LOCATION, EBWSUtil.ALTERNATE_SERVICE) ;
-    }
-    
-    /**
-     * Test for normal valid response through SOAP.
-     * @throws Exception for any failures.
-     */
-    public void testNormalSoapRequest()
-        throws Exception
-    {
-        runSoapRequestTest(EBWSUtil.NORMAL_SOAP_ENDPOINT) ;
-    }
-    
-    /**
-     * Test for alternate valid response through SOAP.
-     * @throws Exception for any failures.
-     */
-    public void testAlternateSoapRequest()
-        throws Exception
-    {
-        runSoapRequestTest(EBWSUtil.ALTERNATE_SOAP_ENDPOINT) ;
-    }
-    
-    /**
-     * Test for normal valid response through SOAP with addressing.
-     * @throws Exception for any failures.
-     */
-    public void testNormalSoapAddressingRequest()
-        throws Exception
-    {
-        runSoapAddressingRequestTest(EBWSUtil.NORMAL_SOAP_ADDRESSING_ENDPOINT) ;
-    }
-    
-    private void runRequestResponseTest(final String requestLocation, final String responseLocation, final String name)
-        throws Exception
-    {
-        final Message message = MessageFactory.getInstance().getMessage() ;
-        if (requestLocation == null)
-        {
-            message.getBody().add(EBWSUtil.VALID_REQUEST) ;
-        }
-        else
-        {
-            message.getBody().add(requestLocation, EBWSUtil.VALID_REQUEST) ;
-        }
-        final ServiceInvoker serviceInvoker = new ServiceInvoker("TestEBWS", name) ;
-        
-        final Message responseMessage = serviceInvoker.deliverSync(message, 30000) ;
-        
-        final Object response ;
-        if (responseLocation == null)
-        {
-            response = responseMessage.getBody().get();
-        }
-        else
-        {
-            response = responseMessage.getBody().get(responseLocation) ;
-        }
-        
-        assertEquals("Response Message", EBWSUtil.VALID_RESPONSE, response) ;
-        final String[] logs = waitForMessages(2) ;
-        assertNotNull("Log message", logs) ;
-        assertEquals("Log count", 2, logs.length) ;
-        assertTrue("Request log message", StringUtils.compareXMLContent(EBWSUtil.VALID_REQUEST, logs[0])) ;
-        assertTrue("Response log message", StringUtils.compareXMLContent(EBWSUtil.VALID_RESPONSE, logs[1])) ;
-    }
-    
-    private void runInvalidRequestTest(final String requestLocation, final String name)
-        throws Exception
-    {
-        final Message message = MessageFactory.getInstance().getMessage() ;
-        if (requestLocation == null)
-        {
-            message.getBody().add(EBWSUtil.INVALID_REQUEST) ;
-        }
-        else
-        {
-            message.getBody().add(requestLocation, EBWSUtil.INVALID_REQUEST) ;
-        }
-        final ServiceInvoker serviceInvoker = new ServiceInvoker("TestEBWS", name) ;
-        
-        try
-        {
-            serviceInvoker.deliverSync(message, 30000) ;
-            fail("Expected fault message") ;
-        }
-        catch (final FaultMessageException fme)
-        {
-            assertTrue("MessageValidationException cause, ", fme.getCause() instanceof MessageValidationException) ;
-        }
-    }
-    
-    private void runInvalidResponseTest(final String requestLocation, final String name)
-        throws Exception
-    {
-        final Message message = MessageFactory.getInstance().getMessage() ;
-        if (requestLocation == null)
-        {
-            message.getBody().add(EBWSUtil.VALID_REQUEST) ;
-        }
-        else
-        {
-            message.getBody().add(requestLocation, EBWSUtil.VALID_REQUEST) ;
-        }
-        message.getBody().add(EBWSUtil.ERROR, "true") ;
-        
-        final ServiceInvoker serviceInvoker = new ServiceInvoker("TestEBWS", name) ;
-        
-        try
-        {
-            serviceInvoker.deliverSync(message, 30000) ;
-            fail("Expected fault message") ;
-        }
-        catch (final FaultMessageException fme)
-        {
-            assertTrue("MessageValidationException cause, ", fme.getCause() instanceof MessageValidationException) ;
-        }
-        
-        final String[] logs = waitForMessages(2) ;
-        assertNotNull("Log message", logs) ;
-        assertEquals("Log count", 2, logs.length) ;
-        assertTrue("Request log message", StringUtils.compareXMLContent(EBWSUtil.VALID_REQUEST, logs[0])) ;
-        assertTrue("Response log message", StringUtils.compareXMLContent(EBWSUtil.INVALID_RESPONSE, logs[1])) ;
-    }
-    
-    private void runSoapRequestTest(final String endpoint)
-        throws Exception
-    {
-        final HttpClient httpClient = new HttpClient() ;
-        final PostMethod postMethod = new PostMethod(endpoint) ;
-        final StringRequestEntity request = new StringRequestEntity(EBWSUtil.SOAP_REQUEST) ;
-        postMethod.setRequestEntity(request) ;
-        
-        httpClient.executeMethod(postMethod) ;
-        final String response = postMethod.getResponseBodyAsString() ;
-        System.out.println("Response is " + response) ;
-        assertTrue("XML response", StringUtils.compareXMLContent(EBWSUtil.SOAP_RESPONSE, response)) ;
-
-        final String[] logs = waitForMessages(2) ;
-        assertNotNull("Log message", logs) ;
-        assertEquals("Log count", 2, logs.length) ;
-        assertTrue("Request log message", StringUtils.compareXMLContent(EBWSUtil.VALID_REQUEST, logs[0])) ;
-        assertTrue("Response log message", StringUtils.compareXMLContent(EBWSUtil.VALID_RESPONSE, logs[1])) ;
-    }
-    
-    private void runSoapAddressingRequestTest(final String endpoint)
-        throws Exception
-    {
-        final HttpClient httpClient = new HttpClient() ;
-        final PostMethod postMethod = new PostMethod(endpoint) ;
-        final StringRequestEntity request = new StringRequestEntity(EBWSUtil.SOAP_ADDRESSING_REQUEST) ;
-        postMethod.setRequestEntity(request) ;
-        
-        httpClient.executeMethod(postMethod) ;
-        final String response = postMethod.getResponseBodyAsString() ;
-        System.out.println("Response is " + response) ;
-        assertNotNull("XML response", response) ;
-        assertTrue("XML response", response.contains("http://soa.jboss.org/TestEBWS/addressingOpResp")) ;
-
-        final String[] logs = waitForMessages(2) ;
-        assertNotNull("Log message", logs) ;
-        assertEquals("Log count", 2, logs.length) ;
-        assertTrue("Request log message", StringUtils.compareXMLContent(EBWSUtil.VALID_REQUEST, logs[0])) ;
-        assertTrue("Response log message", StringUtils.compareXMLContent(EBWSUtil.VALID_RESPONSE, logs[1])) ;
-    }
-    
-    /**
-     * Create the test suite.
-     * @return The suite representing this test case.
-     */
-    public static Test suite()
-        throws Exception
-    {
-        return getDeploySetup(EBWSUnitTest.class, ESB_ARCHIVE);
-    }
-
-    private String[] waitForMessages(final int count)
-        throws Exception
-    {
-        return (String[]) getServer().invoke(new ObjectName(EBWSServerMBean.OBJECT_NAME), "waitForMessages", 
-            new Integer[] {Integer.valueOf(count)}, new String[] { Integer.TYPE.getName() });
-    }
-}

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUnitTest.java (from rev 25084, labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUnitTest.java)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUnitTest.java	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUnitTest.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,297 @@
+/*
+ * 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.server.ebws;
+
+import javax.management.ObjectName;
+
+import junit.framework.Test;
+
+import org.apache.commons.httpclient.HttpClient;
+import org.apache.commons.httpclient.methods.PostMethod;
+import org.apache.commons.httpclient.methods.StringRequestEntity;
+import org.jboss.soa.esb.client.ServiceInvoker;
+import org.jboss.soa.esb.couriers.FaultMessageException;
+import org.jboss.soa.esb.listeners.message.MessageValidationException;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+import org.jboss.soa.esb.testutils.StringUtils;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * Test EBWS invocations.
+ * 
+ * @author <a href='mailto:kevin.conner at jboss.com'>Kevin Conner</a>
+ */
+public class EBWSUnitTest extends JBossTestCase
+{
+    /**
+     * The name of the deployment archive.
+     */
+    private static final String ESB_ARCHIVE = "ebws-test.esb" ;
+    
+    /**
+     * Construct the test case with the specified name.
+     * @param name The name of the test case.
+     */
+    public EBWSUnitTest(final String name)
+    {
+        super(name) ;
+    }
+    
+    /**
+     * Test for normal request/response.
+     * @throws Exception For any failures.
+     */
+    public void testNormalRequestResponse()
+        throws Exception
+    {
+        runRequestResponseTest(null, null, EBWSUtil.NORMAL_SERVICE) ;
+    }
+    
+    /**
+     * Test for alternate request/response.
+     * @throws Exception For any failures.
+     */
+    public void testAlternateRequestResponse()
+        throws Exception
+    {
+        runRequestResponseTest(EBWSUtil.REQUEST_LOCATION, EBWSUtil.RESPONSE_LOCATION, EBWSUtil.ALTERNATE_SERVICE) ;
+    }
+    
+    /**
+     * Test for normal invalid request.
+     * @throws Exception For any failures.
+     */
+    public void testNormalInvalidRequest()
+        throws Exception
+    {
+        runInvalidRequestTest(null, EBWSUtil.NORMAL_SERVICE) ;
+    }
+    
+    /**
+     * Test for alternate invalid request.
+     * @throws Exception For any failures.
+     */
+    public void testAlternateInvalidRequest()
+        throws Exception
+    {
+        runInvalidRequestTest(EBWSUtil.REQUEST_LOCATION, EBWSUtil.ALTERNATE_SERVICE) ;
+    }
+    
+    /**
+     * Test for normal invalid response.
+     * @throws Exception For any failures.
+     */
+    public void testNormalInvalidResponse()
+        throws Exception
+    {
+        runInvalidResponseTest(null, EBWSUtil.NORMAL_SERVICE) ;
+    }
+    
+    /**
+     * Test for alternate invalid response.
+     * @throws Exception For any failures.
+     */
+    public void testAlternateInvalidResponse()
+        throws Exception
+    {
+        runInvalidResponseTest(EBWSUtil.REQUEST_LOCATION, EBWSUtil.ALTERNATE_SERVICE) ;
+    }
+    
+    /**
+     * Test for normal valid response through SOAP.
+     * @throws Exception for any failures.
+     */
+    public void testNormalSoapRequest()
+        throws Exception
+    {
+        runSoapRequestTest(EBWSUtil.NORMAL_SOAP_ENDPOINT) ;
+    }
+    
+    /**
+     * Test for alternate valid response through SOAP.
+     * @throws Exception for any failures.
+     */
+    public void testAlternateSoapRequest()
+        throws Exception
+    {
+        runSoapRequestTest(EBWSUtil.ALTERNATE_SOAP_ENDPOINT) ;
+    }
+    
+    /**
+     * Test for normal valid response through SOAP with addressing.
+     * @throws Exception for any failures.
+     */
+    public void testNormalSoapAddressingRequest()
+        throws Exception
+    {
+        runSoapAddressingRequestTest(EBWSUtil.NORMAL_SOAP_ADDRESSING_ENDPOINT) ;
+    }
+    
+    private void runRequestResponseTest(final String requestLocation, final String responseLocation, final String name)
+        throws Exception
+    {
+        final Message message = MessageFactory.getInstance().getMessage() ;
+        if (requestLocation == null)
+        {
+            message.getBody().add(EBWSUtil.VALID_REQUEST) ;
+        }
+        else
+        {
+            message.getBody().add(requestLocation, EBWSUtil.VALID_REQUEST) ;
+        }
+        final ServiceInvoker serviceInvoker = new ServiceInvoker("TestEBWS", name) ;
+        
+        final Message responseMessage = serviceInvoker.deliverSync(message, 30000) ;
+        
+        final Object response ;
+        if (responseLocation == null)
+        {
+            response = responseMessage.getBody().get();
+        }
+        else
+        {
+            response = responseMessage.getBody().get(responseLocation) ;
+        }
+        
+        assertEquals("Response Message", EBWSUtil.VALID_RESPONSE, response) ;
+        final String[] logs = waitForMessages(2) ;
+        assertNotNull("Log message", logs) ;
+        assertEquals("Log count", 2, logs.length) ;
+        assertTrue("Request log message", StringUtils.compareXMLContent(EBWSUtil.VALID_REQUEST, logs[0])) ;
+        assertTrue("Response log message", StringUtils.compareXMLContent(EBWSUtil.VALID_RESPONSE, logs[1])) ;
+    }
+    
+    private void runInvalidRequestTest(final String requestLocation, final String name)
+        throws Exception
+    {
+        final Message message = MessageFactory.getInstance().getMessage() ;
+        if (requestLocation == null)
+        {
+            message.getBody().add(EBWSUtil.INVALID_REQUEST) ;
+        }
+        else
+        {
+            message.getBody().add(requestLocation, EBWSUtil.INVALID_REQUEST) ;
+        }
+        final ServiceInvoker serviceInvoker = new ServiceInvoker("TestEBWS", name) ;
+        
+        try
+        {
+            serviceInvoker.deliverSync(message, 30000) ;
+            fail("Expected fault message") ;
+        }
+        catch (final FaultMessageException fme)
+        {
+            assertTrue("MessageValidationException cause, ", fme.getCause() instanceof MessageValidationException) ;
+        }
+    }
+    
+    private void runInvalidResponseTest(final String requestLocation, final String name)
+        throws Exception
+    {
+        final Message message = MessageFactory.getInstance().getMessage() ;
+        if (requestLocation == null)
+        {
+            message.getBody().add(EBWSUtil.VALID_REQUEST) ;
+        }
+        else
+        {
+            message.getBody().add(requestLocation, EBWSUtil.VALID_REQUEST) ;
+        }
+        message.getBody().add(EBWSUtil.ERROR, "true") ;
+        
+        final ServiceInvoker serviceInvoker = new ServiceInvoker("TestEBWS", name) ;
+        
+        try
+        {
+            serviceInvoker.deliverSync(message, 30000) ;
+            fail("Expected fault message") ;
+        }
+        catch (final FaultMessageException fme)
+        {
+            assertTrue("MessageValidationException cause, ", fme.getCause() instanceof MessageValidationException) ;
+        }
+        
+        final String[] logs = waitForMessages(2) ;
+        assertNotNull("Log message", logs) ;
+        assertEquals("Log count", 2, logs.length) ;
+        assertTrue("Request log message", StringUtils.compareXMLContent(EBWSUtil.VALID_REQUEST, logs[0])) ;
+        assertTrue("Response log message", StringUtils.compareXMLContent(EBWSUtil.INVALID_RESPONSE, logs[1])) ;
+    }
+    
+    private void runSoapRequestTest(final String endpoint)
+        throws Exception
+    {
+        final HttpClient httpClient = new HttpClient() ;
+        final PostMethod postMethod = new PostMethod(endpoint) ;
+        final StringRequestEntity request = new StringRequestEntity(EBWSUtil.SOAP_REQUEST) ;
+        postMethod.setRequestEntity(request) ;
+        
+        httpClient.executeMethod(postMethod) ;
+        final String response = postMethod.getResponseBodyAsString() ;
+        System.out.println("Response is " + response) ;
+        assertTrue("XML response", StringUtils.compareXMLContent(EBWSUtil.SOAP_RESPONSE, response)) ;
+
+        final String[] logs = waitForMessages(2) ;
+        assertNotNull("Log message", logs) ;
+        assertEquals("Log count", 2, logs.length) ;
+        assertTrue("Request log message", StringUtils.compareXMLContent(EBWSUtil.VALID_REQUEST, logs[0])) ;
+        assertTrue("Response log message", StringUtils.compareXMLContent(EBWSUtil.VALID_RESPONSE, logs[1])) ;
+    }
+    
+    private void runSoapAddressingRequestTest(final String endpoint)
+        throws Exception
+    {
+        final HttpClient httpClient = new HttpClient() ;
+        final PostMethod postMethod = new PostMethod(endpoint) ;
+        final StringRequestEntity request = new StringRequestEntity(EBWSUtil.SOAP_ADDRESSING_REQUEST) ;
+        postMethod.setRequestEntity(request) ;
+        
+        httpClient.executeMethod(postMethod) ;
+        final String response = postMethod.getResponseBodyAsString() ;
+        System.out.println("Response is " + response) ;
+        assertNotNull("XML response", response) ;
+        assertTrue("XML response", response.contains("http://soa.jboss.org/TestEBWS/addressingOpResp")) ;
+
+        final String[] logs = waitForMessages(2) ;
+        assertNotNull("Log message", logs) ;
+        assertEquals("Log count", 2, logs.length) ;
+        assertTrue("Request log message", StringUtils.compareXMLContent(EBWSUtil.VALID_REQUEST, logs[0])) ;
+        assertTrue("Response log message", StringUtils.compareXMLContent(EBWSUtil.VALID_RESPONSE, logs[1])) ;
+    }
+    
+    /**
+     * Create the test suite.
+     * @return The suite representing this test case.
+     */
+    public static Test suite()
+        throws Exception
+    {
+        return getDeploySetup(EBWSUnitTest.class, ESB_ARCHIVE);
+    }
+
+    private String[] waitForMessages(final int count)
+        throws Exception
+    {
+        return (String[]) getServer().invoke(new ObjectName(EBWSServerMBean.OBJECT_NAME), "waitForMessages", 
+            new Integer[] {Integer.valueOf(count)}, new String[] { Integer.TYPE.getName() });
+    }
+}

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUtil.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUtil.java	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUtil.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,76 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, 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.server.ebws;
-
-import javax.management.MBeanServer;
-import javax.management.MalformedObjectNameException;
-
-import org.jboss.mx.util.MBeanProxyExt;
-import org.jboss.mx.util.MBeanServerLocator;
-
-/**
- * EBWS Utility methods and constants.
- *
- * @author <a href="kevin.conner at jboss.com">Kevin Conner</a>
- */
-public class EBWSUtil
-{
-    public static final String VALID_REQUEST = "<say:sayHi xmlns:say=\"http://www.jboss.org/sayHi\"><say:arg0>Hello</say:arg0></say:sayHi>" ;
-    public static final String INVALID_REQUEST = "<say:sayHi xmlns:say=\"http://www.jboss.org/sayHiInvalid\"><say:arg0>Hello</say:arg0></say:sayHi>" ;
-    public static final String VALID_RESPONSE = "<say:sayHiResponse xmlns:say=\"http://www.jboss.org/sayHi\"><say:arg0>Hello Response</say:arg0></say:sayHiResponse>" ;
-    public static final String INVALID_RESPONSE = "<say:sayHiResponse xmlns:say=\"http://www.jboss.org/sayHiInvalid\"><say:arg0>Hello Response</say:arg0></say:sayHiResponse>" ;
-
-    public static final String REQUEST_LOCATION = "REQUEST_LOCATION" ;
-    public static final String RESPONSE_LOCATION = "RESPONSE_LOCATION" ;
-    public static final String NORMAL_SERVICE = "normal" ;
-    public static final String ALTERNATE_SERVICE = "alternate" ;
-    public static final String ERROR = "ERROR" ;
-    
-    public static final String SOAP_REQUEST = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
-            "<soap:Body>" + VALID_REQUEST + "</soap:Body></soap:Envelope>" ; 
-
-    public static final String SOAP_RESPONSE = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
-            "<soap:Header/><soap:Body>" + VALID_RESPONSE + "</soap:Body></soap:Envelope>" ;
-    
-    public static final String SOAP_ADDRESSING_REQUEST = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
-        "<soap:Header xmlns:wsa=\"http://www.w3.org/2005/08/addressing\">" +
-            "<wsa:MessageID>urn:esb:1234567</wsa:MessageID>" +
-            "<wsa:To>http://example.com/To</wsa:To>" +
-            "<wsa:Action>http://example.com/Action</wsa:Action>" +
-        "</soap:Header>" +
-        "<soap:Body>" + VALID_REQUEST + "</soap:Body></soap:Envelope>" ; 
-
-    public static final String SOAP_ADDRESSING_RESPONSE = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
-            "<soap:Header/><soap:Body>" + VALID_RESPONSE + "</soap:Body></soap:Envelope>" ;
-
-    public static final String NORMAL_SOAP_ENDPOINT = "http://127.0.0.1:8080/ebws-test/TestEBWS/normal" ; 
-    public static final String ALTERNATE_SOAP_ENDPOINT = "http://127.0.0.1:8080/ebws-test/TestEBWS/alternate" ; 
-    public static final String NORMAL_SOAP_ADDRESSING_ENDPOINT = "http://127.0.0.1:8080/ebws-test/TestEBWS/addressing" ; 
-    
-    public static EBWSServerMBean getEBWSServerMBean()
-        throws MalformedObjectNameException
-    {
-        final MBeanServer server = MBeanServerLocator.locateJBoss();
-        
-        return (EBWSServerMBean) MBeanProxyExt.create(EBWSServerMBean.class, EBWSServerMBean.OBJECT_NAME, server);
-    }
-}

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUtil.java (from rev 25084, labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUtil.java)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUtil.java	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/EBWSUtil.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,76 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, 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.server.ebws;
+
+import javax.management.MBeanServer;
+import javax.management.MalformedObjectNameException;
+
+import org.jboss.mx.util.MBeanProxyExt;
+import org.jboss.mx.util.MBeanServerLocator;
+
+/**
+ * EBWS Utility methods and constants.
+ *
+ * @author <a href="kevin.conner at jboss.com">Kevin Conner</a>
+ */
+public class EBWSUtil
+{
+    public static final String VALID_REQUEST = "<say:sayHi xmlns:say=\"http://www.jboss.org/sayHi\"><say:arg0>Hello</say:arg0></say:sayHi>" ;
+    public static final String INVALID_REQUEST = "<say:sayHi xmlns:say=\"http://www.jboss.org/sayHiInvalid\"><say:arg0>Hello</say:arg0></say:sayHi>" ;
+    public static final String VALID_RESPONSE = "<say:sayHiResponse xmlns:say=\"http://www.jboss.org/sayHi\"><say:arg0>Hello Response</say:arg0></say:sayHiResponse>" ;
+    public static final String INVALID_RESPONSE = "<say:sayHiResponse xmlns:say=\"http://www.jboss.org/sayHiInvalid\"><say:arg0>Hello Response</say:arg0></say:sayHiResponse>" ;
+
+    public static final String REQUEST_LOCATION = "REQUEST_LOCATION" ;
+    public static final String RESPONSE_LOCATION = "RESPONSE_LOCATION" ;
+    public static final String NORMAL_SERVICE = "normal" ;
+    public static final String ALTERNATE_SERVICE = "alternate" ;
+    public static final String ERROR = "ERROR" ;
+    
+    public static final String SOAP_REQUEST = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
+            "<soap:Body>" + VALID_REQUEST + "</soap:Body></soap:Envelope>" ; 
+
+    public static final String SOAP_RESPONSE = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
+            "<soap:Header/><soap:Body>" + VALID_RESPONSE + "</soap:Body></soap:Envelope>" ;
+    
+    public static final String SOAP_ADDRESSING_REQUEST = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
+        "<soap:Header xmlns:wsa=\"http://www.w3.org/2005/08/addressing\">" +
+            "<wsa:MessageID>urn:esb:1234567</wsa:MessageID>" +
+            "<wsa:To>http://example.com/To</wsa:To>" +
+            "<wsa:Action>http://example.com/Action</wsa:Action>" +
+        "</soap:Header>" +
+        "<soap:Body>" + VALID_REQUEST + "</soap:Body></soap:Envelope>" ; 
+
+    public static final String SOAP_ADDRESSING_RESPONSE = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
+            "<soap:Header/><soap:Body>" + VALID_RESPONSE + "</soap:Body></soap:Envelope>" ;
+
+    public static final String NORMAL_SOAP_ENDPOINT = "http://127.0.0.1:8080/ebws-test/TestEBWS/normal" ; 
+    public static final String ALTERNATE_SOAP_ENDPOINT = "http://127.0.0.1:8080/ebws-test/TestEBWS/alternate" ; 
+    public static final String NORMAL_SOAP_ADDRESSING_ENDPOINT = "http://127.0.0.1:8080/ebws-test/TestEBWS/addressing" ; 
+    
+    public static EBWSServerMBean getEBWSServerMBean()
+        throws MalformedObjectNameException
+    {
+        final MBeanServer server = MBeanServerLocator.locateJBoss();
+        
+        return (EBWSServerMBean) MBeanProxyExt.create(EBWSServerMBean.class, EBWSServerMBean.OBJECT_NAME, server);
+    }
+}

Deleted: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/LogMessageAction.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/LogMessageAction.java	2009-02-03 20:24:36 UTC (rev 25084)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/LogMessageAction.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -1,103 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, 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.server.ebws;
-
-import javax.management.MBeanServer;
-import javax.management.MalformedObjectNameException;
-
-import org.jboss.mx.util.MBeanProxyExt;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.soa.esb.actions.AbstractActionLifecycle;
-import org.jboss.soa.esb.actions.ActionPipelineProcessor;
-import org.jboss.soa.esb.actions.ActionProcessingException;
-import org.jboss.soa.esb.helpers.ConfigTree;
-import org.jboss.soa.esb.listeners.ListenerTagNames;
-import org.jboss.soa.esb.message.Body;
-import org.jboss.soa.esb.message.Message;
-
-/**
- * Action class to attempt a suspend of a running jBPM process.
- * 
- * @author <a href='mailto:Kevin.Conner at jboss.com'>Kevin Conner</a>
- */
-public class LogMessageAction extends AbstractActionLifecycle implements ActionPipelineProcessor
-{
-    private final String requestLocation ;
-    private final String responseLocation ;
-    
-    public LogMessageAction(final ConfigTree config)
-    {
-        final ConfigTree parent = config.getParent() ;
-        requestLocation = parent.getAttribute(ListenerTagNames.REQUEST_LOCATION_TAG) ;
-        responseLocation = parent.getAttribute(ListenerTagNames.RESPONSE_LOCATION_TAG) ;
-    }
-
-    public Message process(final Message message)
-        throws ActionProcessingException
-    {
-        final MBeanServer server = MBeanServerLocator.locateJBoss();
-        
-        final EBWSServerMBean ebwsServer ;
-        try
-        {
-            ebwsServer = (EBWSServerMBean) MBeanProxyExt.create(EBWSServerMBean.class, EBWSServerMBean.OBJECT_NAME, server);
-        }
-        catch (final MalformedObjectNameException mone)
-        {
-            throw new ActionProcessingException("Error creating MBean proxy", mone) ;
-        }
-        
-        final Body body = message.getBody() ;
-        final Object messageRequest ;
-        if (requestLocation != null)
-        {
-            messageRequest = body.get(requestLocation) ;
-        }
-        else
-        {
-            messageRequest = body.get() ;
-        }
-        final String contents = String.valueOf(messageRequest) ;
-        ebwsServer.logMessage(contents) ;
-        
-        final String response = (message.getBody().get(EBWSUtil.ERROR) != null ? EBWSUtil.INVALID_RESPONSE : EBWSUtil.VALID_RESPONSE) ;
-        ebwsServer.logMessage(response) ;
-        
-        if (responseLocation != null)
-        {
-            body.add(responseLocation, response) ;
-        }
-        else
-        {
-            body.add(response) ;
-        }
-        return message;
-    }
-    
-    public void processException(final Message message, final Throwable th)
-    {
-    }
-    
-    public void processSuccess(final Message message)
-    {
-    }
-}

Copied: labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/LogMessageAction.java (from rev 25084, labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/server/ebws/LogMessageAction.java)
===================================================================
--- labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/LogMessageAction.java	                        (rev 0)
+++ labs/jbossesb/workspace/mlittle/legstar/qa/junit/src/org/jboss/soa/esb/server/ebws/LogMessageAction.java	2009-02-04 07:17:57 UTC (rev 25092)
@@ -0,0 +1,103 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, 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.server.ebws;
+
+import javax.management.MBeanServer;
+import javax.management.MalformedObjectNameException;
+
+import org.jboss.mx.util.MBeanProxyExt;
+import org.jboss.mx.util.MBeanServerLocator;
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.actions.ActionPipelineProcessor;
+import org.jboss.soa.esb.actions.ActionProcessingException;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.listeners.ListenerTagNames;
+import org.jboss.soa.esb.message.Body;
+import org.jboss.soa.esb.message.Message;
+
+/**
+ * Action class to attempt a suspend of a running jBPM process.
+ * 
+ * @author <a href='mailto:Kevin.Conner at jboss.com'>Kevin Conner</a>
+ */
+public class LogMessageAction extends AbstractActionLifecycle implements ActionPipelineProcessor
+{
+    private final String requestLocation ;
+    private final String responseLocation ;
+    
+    public LogMessageAction(final ConfigTree config)
+    {
+        final ConfigTree parent = config.getParent() ;
+        requestLocation = parent.getAttribute(ListenerTagNames.REQUEST_LOCATION_TAG) ;
+        responseLocation = parent.getAttribute(ListenerTagNames.RESPONSE_LOCATION_TAG) ;
+    }
+
+    public Message process(final Message message)
+        throws ActionProcessingException
+    {
+        final MBeanServer server = MBeanServerLocator.locateJBoss();
+        
+        final EBWSServerMBean ebwsServer ;
+        try
+        {
+            ebwsServer = (EBWSServerMBean) MBeanProxyExt.create(EBWSServerMBean.class, EBWSServerMBean.OBJECT_NAME, server);
+        }
+        catch (final MalformedObjectNameException mone)
+        {
+            throw new ActionProcessingException("Error creating MBean proxy", mone) ;
+        }
+        
+        final Body body = message.getBody() ;
+        final Object messageRequest ;
+        if (requestLocation != null)
+        {
+            messageRequest = body.get(requestLocation) ;
+        }
+        else
+        {
+            messageRequest = body.get() ;
+        }
+        final String contents = String.valueOf(messageRequest) ;
+        ebwsServer.logMessage(contents) ;
+        
+        final String response = (message.getBody().get(EBWSUtil.ERROR) != null ? EBWSUtil.INVALID_RESPONSE : EBWSUtil.VALID_RESPONSE) ;
+        ebwsServer.logMessage(response) ;
+        
+        if (responseLocation != null)
+        {
+            body.add(responseLocation, response) ;
+        }
+        else
+        {
+            body.add(response) ;
+        }
+        return message;
+    }
+    
+    public void processException(final Message message, final Throwable th)
+    {
+    }
+    
+    public void processSuccess(final Message message)
+    {
+    }
+}




More information about the jboss-svn-commits mailing list