[jboss-svn-commits] JBL Code SVN: r10188 - labs/jbossesb/trunk/product/samples/quickstarts/helloworld.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Mar 14 17:12:40 EDT 2007


Author: kurt.stam at jboss.com
Date: 2007-03-14 17:12:40 -0400 (Wed, 14 Mar 2007)
New Revision: 10188

Added:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jboss-esb.xml
Removed:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbossesb.xml
Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml
Log:
Converting to use the new deployer.

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml	2007-03-14 19:50:44 UTC (rev 10187)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/build.xml	2007-03-14 21:12:40 UTC (rev 10188)
@@ -47,10 +47,15 @@
   </target>
 
   <target name="jars" depends="compile">
-	<delete file="${build.dir}/${ant.project.name}.jar"/>
-        <jar destfile="${build.dir}/${ant.project.name}.jar"
+  	<copy file="jboss-esb.xml" todir="${build.dir}/META-INF"/>
+	<delete file="${build.dir}/${ant.project.name}.esb"/>
+        <jar destfile="${build.dir}/${ant.project.name}.esb"
 		basedir="${build.dir}"
-		includes="**/*.class"/>
+		includes="**/MyJMSListenerAction.class,**/jboss-esb.xml"/>
+  	<delete file="${build.dir}/${ant.project.name}-client.jar"/>
+  	<jar destfile="${build.dir}/${ant.project.name}-client.jar"
+  		basedir="${build.dir}"
+  		includes="**/test/*.class"/>
   </target>
 
   <target name="run" depends="jars">
@@ -61,15 +66,11 @@
 	     </java>     
   </target>	
 
-  <target name="deployToSAR" depends="jars">
-	    <echo>Deploys the project to the JBoss Application Server ESB SAR</echo>
-	  	<copy file="${build.dir}/${ant.project.name}.jar" overwrite="true"
-	  		todir="${jbosshome.dir}/server/default/deploy/jbossesb.sar"	
+  <target name="deploy" depends="jars">
+	    <echo>Deploys the project to the JBoss Application Server</echo>
+	  	<copy file="${build.dir}/${ant.project.name}.esb" overwrite="true"
+	  		todir="${jbosshome.dir}/server/default/deploy/"	
 	  	/>
-	  	<copy file="jbossesb.xml" overwrite="true"
-	  		todir="${jbosshome.dir}/server/default/conf"
-	  	/>
-	  	<touch file="${jbosshome.dir}/server/default/deploy/jbossesb.sar/META-INF/jboss-service.xml"/>
 	  	<echo>Check your AS console to see if everything deployed properly then run 'ant runtest'</echo>
   </target>
 	

Copied: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jboss-esb.xml (from rev 10186, labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbossesb.xml)
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jboss-esb.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jboss-esb.xml	2007-03-14 21:12:40 UTC (rev 10188)
@@ -0,0 +1,48 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" parameterReloadSecs="5">
+
+    <providers>
+          <jms-provider name="JBossMQ" connection-factory="ConnectionFactory">
+                      
+              <jms-bus busid="quickstartGwChannel">
+                  <jms-message-filter
+                      dest-type="QUEUE"
+                      dest-name="queue/quickstart_helloworld_Request"
+                   />
+              </jms-bus>
+              <jms-bus busid="quickstartEsbChannel">
+                  <jms-message-filter
+                      dest-type="QUEUE"
+                      dest-name="queue/B"
+                  />
+              </jms-bus>
+
+          </jms-provider>
+      </providers>
+      
+      <services>
+        <service 
+        	category="FirstServiceESB" 
+        	name="SimpleListener" 
+        	description="Hello World">
+            <listeners>
+                <jms-listener name="JMS-Gateway"
+                    busidref="quickstartGwChannel"
+                    maxThreads="1"
+                    is-gateway="true"
+                />
+                <jms-listener name="helloWorld"
+                              busidref="quickstartEsbChannel"
+                              maxThreads="1"
+                />
+            </listeners>
+            <actions>
+                   <action name="action1" 
+                   	class="quickstart.helloworld.MyJMSListenerAction" 
+                   	process="displayMessage" 
+                   	/>      
+            </actions>
+        </service>
+      </services>
+     
+</jbossesb>

Deleted: labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbossesb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbossesb.xml	2007-03-14 19:50:44 UTC (rev 10187)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld/jbossesb.xml	2007-03-14 21:12:40 UTC (rev 10188)
@@ -1,50 +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.0.1.xsd" parameterReloadSecs="5">
-
-    <providers>
-          <jms-provider name="JBossMQ" connection-factory="ConnectionFactory"
-                      jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
-                      jndi-URL="localhost" >
-                      
-              <jms-bus busid="quickstartGwChannel">
-                  <jms-message-filter
-                      dest-type="QUEUE"
-                      dest-name="queue/quickstart_helloworld_Request"
-                   />
-              </jms-bus>
-              <jms-bus busid="quickstartEsbChannel">
-                  <jms-message-filter
-                      dest-type="QUEUE"
-                      dest-name="queue/B"
-                  />
-              </jms-bus>
-
-          </jms-provider>
-      </providers>
-      
-      <services>
-        <service 
-        	category="FirstServiceESB" 
-        	name="SimpleListener" 
-        	description="Hello World">
-            <listeners>
-                <jms-listener name="JMS-Gateway"
-                    busidref="quickstartGwChannel"
-                    maxThreads="1"
-                    is-gateway="true"
-                />
-                <jms-listener name="helloWorld"
-                              busidref="quickstartEsbChannel"
-                              maxThreads="1"
-                />
-            </listeners>
-            <actions>
-                   <action name="action1" 
-                   	class="quickstart.helloworld.MyJMSListenerAction" 
-                   	process="displayMessage" 
-                   	/>      
-            </actions>
-        </service>
-      </services>
-     
-</jbossesb>




More information about the jboss-svn-commits mailing list