[jboss-svn-commits] JBL Code SVN: r10381 - labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Mar 20 20:58:25 EDT 2007
Author: kurt.stam at jboss.com
Date: 2007-03-20 20:58:25 -0400 (Tue, 20 Mar 2007)
New Revision: 10381
Added:
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml
Removed:
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/jbossesb.xml
Modified:
labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/build.xml
Log:
Converting to .esb deployment
Modified: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/build.xml 2007-03-21 00:56:18 UTC (rev 10380)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/build.xml 2007-03-21 00:58:25 UTC (rev 10381)
@@ -1,16 +1,16 @@
-<project name="Quickstart_helloworld_FTP_action" default="run" basedir=".">
+<project name="Quickstart_helloworld_SQL_action" default="run" basedir=".">
<property file="../quickstarts.properties" />
<property name="build.dir" value="${basedir}/build"/>
<property name="src.dir" value="${basedir}/src"/>
- <property name="esb-config" value="${basedir}/jbossesb.xml"/>
+ <property name="esb-config" value="${basedir}/jboss-esb.xml"/>
<path id="classpath">
<!-- fileset dir="${basedir}" includes="jbossesb-properties.xml" -->
<!-- fileset dir="${basedir}" includes="juddi.properties" -->
- <fileset dir="${basedir}/lib" includes="*jar"/>
+
<fileset dir="${esb.product.lib.dir}" includes="*jar"/>
<fileset dir="${esb.product.lib.dir}" includes="*xml"/>
<fileset dir="${esb.product.lib.dir}/ext" includes="*jar"/>
@@ -47,10 +47,13 @@
</target>
<target name="jars" depends="compile">
+ <copy file="${esb-config}" tofile="${build.dir}/META-INF/jboss-esb.xml"/>
<delete file="${build.dir}/${ant.project.name}.jar"/>
<jar destfile="${build.dir}/${ant.project.name}.jar"
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="run" depends="jars">
@@ -70,16 +73,11 @@
</exec>
</target>
- <target name="deployToSAR">
- <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>
<target name="dropdb">
Added: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml 2007-03-21 00:58:25 UTC (rev 10381)
@@ -0,0 +1,61 @@
+<?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>
+ <sql-provider name="SQLprovider"
+ url="jdbc:mysql://localhost:3306/test_sql_gateway"
+ driver="com.mysql.jdbc.Driver"
+ username="root"
+ password=""
+ >
+ <sql-bus busid="helloSQLChannel" >
+ <sql-message-filter
+ tablename="gateway_table"
+ status-column="status_col"
+ message-id-column="unique_id"
+ />
+ </sql-bus>
+ </sql-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="source='fromHelloworldSQLAction'"
+ />
+ </jms-bus>
+
+ </jms-provider>
+
+ </providers>
+
+ <services>
+ <service
+ category="myCategory"
+ name="myJmsListener"
+ description="Hello World SQL Action (esb jdbc listener)">
+ <listeners>
+ <sql-listener name="SqlGateway"
+ busidref="helloSQLChannel"
+ maxThreads="1"
+ is-gateway="true"/>
+ <jms-listener name="helloWorldJmsAction"
+ busidref="quickstartEsbChannel"
+ maxThreads="1"
+ />
+ </listeners>
+ <actions>
+ <action name="action1"
+ class="quickstart.hw_sql_action.MyAction"
+ process="displayMessage"
+ />
+ </actions>
+ </service>
+ </services>
+
+</jbossesb>
Property changes on: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Deleted: labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/jbossesb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/jbossesb.xml 2007-03-21 00:56:18 UTC (rev 10380)
+++ labs/jbossesb/branches/JBESB_4_0_MP1/product/samples/quickstarts/helloworld_sql_action/jbossesb.xml 2007-03-21 00:58:25 UTC (rev 10381)
@@ -1,61 +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>
- <sql-provider name="SQLprovider"
- url="jdbc:mysql://localhost:3306/test_sql_gateway"
- driver="com.mysql.jdbc.Driver"
- username="root"
- password="admin"
- >
- <sql-bus busid="helloSQLChannel" >
- <sql-message-filter
- tablename="gateway_table"
- status-column="status_col"
- message-id-column="unique_id"
- />
- </sql-bus>
- </sql-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="source='fromHelloworldSQLAction'"
- />
- </jms-bus>
-
- </jms-provider>
-
- </providers>
-
- <services>
- <service
- category="myCategory"
- name="myJmsListener"
- description="Hello World SQL Action (esb jdbc listener)">
- <listeners>
- <sql-listener name="SqlGateway"
- busidref="helloSQLChannel"
- maxThreads="1"
- is-gateway="true"/>
- <jms-listener name="helloWorldJmsAction"
- busidref="quickstartEsbChannel"
- maxThreads="1"
- />
- </listeners>
- <actions>
- <action name="action1"
- class="quickstart.hw_sql_action.MyAction"
- process="displayMessage"
- />
- </actions>
- </service>
- </services>
-
-</jbossesb>
More information about the jboss-svn-commits
mailing list