[jboss-svn-commits] JBL Code SVN: r10357 - labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Mar 20 13:27:33 EDT 2007
Author: kurt.stam at jboss.com
Date: 2007-03-20 13:27:33 -0400 (Tue, 20 Mar 2007)
New Revision: 10357
Added:
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/jboss-esb.xml
Removed:
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/jbossesb.xml
Modified:
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/build.xml
Log:
Updating so it can run as .esb archive
Modified: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/build.xml 2007-03-20 16:47:17 UTC (rev 10356)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/build.xml 2007-03-20 17:27:33 UTC (rev 10357)
@@ -5,7 +5,7 @@
<property name="build.dir" value="${basedir}/build"/>
<property name="src.dir" value="${basedir}/src"/>
- <property name="jbossesb.name" value="jbossesb.xml"/>
+ <property name="jbossesb.name" value="jboss-esb.xml"/>
<property name="jbossesb.origconfig" location="${basedir}/${jbossesb.name}"/>
<property name="jbossesb.config" location="${build.dir}/${jbossesb.name}"/>
@@ -15,7 +15,7 @@
<property name="jbossesb.errordir" location="${jbossesb.rootdir}/error"/>
<property name="jboss.server.dir" location="${jbosshome.dir}/server/default"/>
- <property name="jboss.deploy.dir" location="${jboss.server.dir}/deploy/jbossesb.sar"/>
+ <property name="jboss.deploy.dir" location="${jboss.server.dir}/deploy"/>
<property name="jboss.conf.dir" location="${jboss.server.dir}/conf"/>
<path id="classpath">
@@ -60,7 +60,9 @@
<target name="jars" depends="compile">
<delete file="${build.dir}/${ant.project.name}.jar"/>
<jar destfile="${build.dir}/${ant.project.name}.jar"
- basedir="${build.dir}" includes="**/*.class"/>
+ basedir="${build.dir}" includes="**/*.class"/>
+ <jar destfile="${build.dir}/${ant.project.name}.esb"
+ basedir="${build.dir}" includes="**/*.class,META-INF/jboss-esb.xml"/>
</target>
<target name="config">
@@ -82,6 +84,7 @@
</target>
<target name="run" depends="jars, config">
+ <copy file="${build.dir}/jbossesb.xml" tofile="${build.dir}/jbossesb.xml"/>
<echo>Basic File Gateway and Listener</echo>
<java fork="yes" classname="org.jboss.soa.esb.listeners.StandAloneBootStrapper" failonerror="true">
<arg value="${jbossesb.config}"/>
@@ -89,12 +92,10 @@
</java>
</target>
- <target name="deployToSAR" depends="jars, config">
+ <target name="deploy" depends="jars, config">
<echo message="Deploying to ${jboss.deploy.dir}"/>
- <copy file="${build.dir}/${ant.project.name}.jar"
+ <copy file="${build.dir}/${ant.project.name}.esb"
todir="${jboss.deploy.dir}" overwrite="true"/>
- <copy file="${jbossesb.config}" todir="${jboss.conf.dir}" overwrite="true"/>
- <touch file="${jboss.deploy.dir}/META-INF/jboss-service.xml"/>
</target>
<target name="runtest">
Copied: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/jboss-esb.xml (from rev 10356, labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/jbossesb.xml)
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/jboss-esb.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/jboss-esb.xml 2007-03-20 17:27:33 UTC (rev 10357)
@@ -0,0 +1,64 @@
+<?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>
+ <fs-provider name="FSprovider1">
+ <fs-bus busid="helloFileChannel" >
+ <fs-message-filter
+ directory="@INPUTDIR@"
+ input-suffix=".dat"
+ work-suffix=".esbWorking"
+ post-delete="false"
+ post-directory="@OUTPUTDIR@"
+ post-suffix=".sentToEsb"
+ error-delete="false"
+ error-directory="@ERRORDIR@"
+ error-suffix=".IN_ERROR"
+ />
+ </fs-bus>
+ </fs-provider>
+
+ <jms-provider name="JBossMessaging"
+ connection-factory="ConnectionFactory"
+ >
+
+ <jms-bus busid="quickstartEsbChannel">
+ <jms-message-filter
+ dest-type="QUEUE"
+ dest-name="queue/A"
+ selector="type='fromHelloworldFileAction'"
+ />
+ </jms-bus>
+
+ </jms-provider>
+
+ </providers>
+
+ <services>
+
+ <service
+ category="myCategory"
+ name="myFileListener"
+ description="Hello World File Action (esb listener)" >
+ <listeners>
+ <fs-listener name="FileGateway"
+ busidref="helloFileChannel"
+ maxThreads="1"
+ is-gateway="true"
+ poll-frequency-seconds="10"
+ />
+ <jms-listener name="helloWorldFileAction"
+ busidref="quickstartEsbChannel"
+ maxThreads="1"
+ />
+ </listeners>
+ <actions>
+ <action name="action1"
+ class="quickstart.hw_file_action.MyAction"
+ process="displayMessage,playWithMessage"
+ />
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Deleted: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/jbossesb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/jbossesb.xml 2007-03-20 16:47:17 UTC (rev 10356)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_file_action/jbossesb.xml 2007-03-20 17:27:33 UTC (rev 10357)
@@ -1,65 +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>
- <fs-provider name="FSprovider1">
- <fs-bus busid="helloFileChannel" >
- <fs-message-filter
- directory="@INPUTDIR@"
- input-suffix=".dat"
- work-suffix=".esbWorking"
- post-delete="false"
- post-directory="@OUTPUTDIR@"
- post-suffix=".sentToEsb"
- error-delete="false"
- error-directory="@ERRORDIR@"
- error-suffix=".IN_ERROR"
- />
- </fs-bus>
- </fs-provider>
-
- <jms-provider name="JBossMQ"
- connection-factory="ConnectionFactory"
- jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
- jndi-URL="localhost" >
-
- <jms-bus busid="quickstartEsbChannel">
- <jms-message-filter
- dest-type="QUEUE"
- dest-name="queue/A"
- selector="type='fromHelloworldFileAction'"
- />
- </jms-bus>
-
- </jms-provider>
-
- </providers>
-
- <services>
-
- <service
- category="myCategory"
- name="myFileListener"
- description="Hello World File Action (esb listener)" >
- <listeners>
- <fs-listener name="FileGateway"
- busidref="helloFileChannel"
- maxThreads="1"
- is-gateway="true"
- poll-frequency-seconds="10"
- />
- <jms-listener name="helloWorldFileAction"
- busidref="quickstartEsbChannel"
- maxThreads="1"
- />
- </listeners>
- <actions>
- <action name="action1"
- class="quickstart.hw_file_action.MyAction"
- process="displayMessage,playWithMessage"
- />
- </actions>
- </service>
- </services>
-
-</jbossesb>
More information about the jboss-svn-commits
mailing list