[jboss-svn-commits] JBL Code SVN: r11454 - in labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration: src and 7 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sun Apr 29 13:56:16 EDT 2007


Author: sebcao
Date: 2007-04-29 13:56:16 -0400 (Sun, 29 Apr 2007)
New Revision: 11454

Added:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/soa/
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/soa/esb/
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/soa/esb/samples/
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/soa/esb/samples/quickstart/
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/soa/esb/samples/quickstart/helloworlddbregistration/
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/soa/esb/samples/quickstart/helloworlddbregistration/MyJMSListenerAction.java
Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/build.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/jboss-esb.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/jbossesb.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/readme.txt
Log:
JBESB-403

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/build.xml	2007-04-29 17:53:15 UTC (rev 11453)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/build.xml	2007-04-29 17:56:16 UTC (rev 11454)
@@ -11,7 +11,7 @@
   <target name="runtest" 
 	  description="will send a JMS message to the ESB">
      <echo>Runs Test JMS Sender</echo>
-     <java fork="yes" classname="quickstart.test.SendJMSMessage" failonerror="true">
+     <java fork="yes" classname="org.jboss.soa.esb.samples.quickstart.helloworlddbregistration.test.SendJMSMessage" failonerror="true">
      	<arg value="Hello World db registration"/>
 		<classpath refid="exec-classpath"/>
      </java>

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/jboss-esb.xml	2007-04-29 17:53:15 UTC (rev 11453)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/jboss-esb.xml	2007-04-29 17:56:16 UTC (rev 11454)
@@ -24,7 +24,7 @@
                     busidref="helloworldDBServiceChannel" maxThreads="1"/>
             </listeners>
             <actions>
-                <action name="helloworldDBAction" class="quickstart.MyJMSListenerAction" 
+                <action name="helloworldDBAction" class="org.jboss.soa.esb.samples.quickstart.helloworlddbregistration.MyJMSListenerAction" 
                    	process="displayMessage"/>
             </actions>
         </service>

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/jbossesb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/jbossesb.xml	2007-04-29 17:53:15 UTC (rev 11453)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/jbossesb.xml	2007-04-29 17:56:16 UTC (rev 11454)
@@ -24,7 +24,7 @@
                     busidref="helloworldDBServiceChannel" maxThreads="1"/>
             </listeners>
             <actions>
-                <action name="helloworldDBAction" class="quickstart.MyJMSListenerAction" 
+                <action name="helloworldDBAction" class="org.jboss.soa.esb.samples.quickstart.helloworlddbregistration.MyJMSListenerAction" 
                    	process="displayMessage"/>
             </actions>
         </service>

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/readme.txt	2007-04-29 17:53:15 UTC (rev 11453)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/readme.txt	2007-04-29 17:56:16 UTC (rev 11454)
@@ -75,7 +75,7 @@
 	service-category and service-name found in the esb-config.xml file.
 
 	jndi.properties:
-	Needed primarily for quickstart.test.SendJMSMessage that is fired by ant runtest.
+	Needed primarily for org.jboss.soa.esb.samples.quickstart.helloworlddbregistration.test.SendJMSMessage that is fired by ant runtest.
 
 	log4j.xml:
 	Needed to configure log4J used by both the quickstart and the ESB itself. A listener needs a place to log.
@@ -103,7 +103,7 @@
 		This generates a file called myclasspath.txt which can be reviewed in a text editor
 	*	the run task calls the Launcher passing in 3 arguments the most important are the esb-config.xml and 
 		esb-config-gateway.xml files
-	*	the runtest task calls the quickstart.test.SendJMSMessage class and passes in an argument representing
+	*	the runtest task calls the org.jboss.soa.esb.samples.quickstart.helloworlddbregistration.test.SendJMSMessage class and passes in an argument representing
 		the string-based message to be pused into the queue the gateway is listening on.  Note: SendJMSMessage 
 		contains a hard-coded queue name.
 

Added: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/soa/esb/samples/quickstart/helloworlddbregistration/MyJMSListenerAction.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/soa/esb/samples/quickstart/helloworlddbregistration/MyJMSListenerAction.java	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_db_registration/src/org/jboss/soa/esb/samples/quickstart/helloworlddbregistration/MyJMSListenerAction.java	2007-04-29 17:56:16 UTC (rev 11454)
@@ -0,0 +1,45 @@
+/*
+ * 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,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.samples.quickstart.helloworlddbregistration;
+
+import org.jboss.soa.esb.actions.AbstractActionLifecycle;
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+
+public class MyJMSListenerAction extends AbstractActionLifecycle
+{
+    
+  protected ConfigTree	_config;
+	  
+  public MyJMSListenerAction(ConfigTree config) { _config = config; } 
+
+  
+  public Message displayMessage(Message message) throws Exception{
+		
+		  System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");		  		  
+		  System.out.println("\nBody: " + new String(message.getBody().getContents()));
+		  System.out.println("\n&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
+		  return message; 
+        		
+	}
+    
+	
+}
\ No newline at end of file




More information about the jboss-svn-commits mailing list