[jboss-svn-commits] JBL Code SVN: r16503 - in labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product: samples/quickstarts/helloworld_file_notifier and 2 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Nov 10 15:37:35 EST 2007


Author: mark.little at jboss.com
Date: 2007-11-10 15:37:35 -0500 (Sat, 10 Nov 2007)
New Revision: 16503

Modified:
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/src/org/jboss/soa/esb/actions/StaticRouter.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/build.xml
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/jboss-esb-unfiltered.xml
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/src/org/jboss/soa/esb/samples/quickstart/helloworldfilenotifier/MyJMSListenerAction.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/src/org/jboss/soa/esb/samples/quickstart/helloworldfilenotifier/test/SendEsbMessage.java
Log:
http://jira.jboss.com/jira/browse/JBESB-1302

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/src/org/jboss/soa/esb/actions/StaticRouter.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/src/org/jboss/soa/esb/actions/StaticRouter.java	2007-11-10 20:30:05 UTC (rev 16502)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/src/org/jboss/soa/esb/actions/StaticRouter.java	2007-11-10 20:37:35 UTC (rev 16503)
@@ -41,7 +41,7 @@
     }
     
     /**
-     * Routes the message to one or more destonations.
+     * Routes the message to one or more destinations.
      */
     public Message process(Message message) throws ActionProcessingException
     {

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/build.xml	2007-11-10 20:30:05 UTC (rev 16502)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/build.xml	2007-11-10 20:37:35 UTC (rev 16503)
@@ -30,7 +30,7 @@
 	<target name="sendesb" depends="compile"
 		description="Will send an esb Message">
 		<echo>Runs Test ESB Message Sender</echo>
-		<java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.helloworld.test.SendEsbMessage" failonerror="true">
+		<java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.helloworldfilenotifier.test.SendEsbMessage" failonerror="true">
 			<arg value="FirstServiceESB"/> <!--  service category -->
 			<arg value="SimpleListener"/>  <!--  service name -->
 			<arg value="Hello World - Straight to ESB listener - no Gateway"/> <!--  Message text -->

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/jboss-esb-unfiltered.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/jboss-esb-unfiltered.xml	2007-11-10 20:30:05 UTC (rev 16502)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/jboss-esb-unfiltered.xml	2007-11-10 20:37:35 UTC (rev 16503)
@@ -54,7 +54,7 @@
                               maxThreads="1"
                 />
             </listeners>
-            <actions>
+            <actions mep="OneWay">
                	<action name="routeAction"  class="org.jboss.soa.esb.actions.StaticRouter">
 			<property name="destinations">
 				<route-to service-category="routerToDisplay" service-name="DisplayRouterListener" /> 

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/src/org/jboss/soa/esb/samples/quickstart/helloworldfilenotifier/MyJMSListenerAction.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/src/org/jboss/soa/esb/samples/quickstart/helloworldfilenotifier/MyJMSListenerAction.java	2007-11-10 20:30:05 UTC (rev 16502)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/src/org/jboss/soa/esb/samples/quickstart/helloworldfilenotifier/MyJMSListenerAction.java	2007-11-10 20:37:35 UTC (rev 16503)
@@ -30,7 +30,6 @@
   protected ConfigTree	_config;
 	  
   public MyJMSListenerAction(ConfigTree config) { _config = config; } 
-
   
   public Message displayMessage(Message message) throws Exception{
 		
@@ -38,8 +37,5 @@
 		  System.out.println("Body: " + message.getBody().get());
 		  System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
 		  return message; 
-        		
 	}
-    
-	
 }
\ No newline at end of file

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/src/org/jboss/soa/esb/samples/quickstart/helloworldfilenotifier/test/SendEsbMessage.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/src/org/jboss/soa/esb/samples/quickstart/helloworldfilenotifier/test/SendEsbMessage.java	2007-11-10 20:30:05 UTC (rev 16502)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_file_notifier/src/org/jboss/soa/esb/samples/quickstart/helloworldfilenotifier/test/SendEsbMessage.java	2007-11-10 20:37:35 UTC (rev 16503)
@@ -58,10 +58,9 @@
     	esbMessage.getHeader().setCall(call);
     	
     	// set body contents with args[2], and send
-    	esbMessage.getBody().add(args[2].getBytes());
+    	esbMessage.getBody().add(args[2]);
     	
         new ServiceInvoker(args[0], args[1]).deliverAsync(esbMessage);
-
     }
     
 }
\ No newline at end of file




More information about the jboss-svn-commits mailing list