[jboss-svn-commits] JBL Code SVN: r20209 - in labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts: helloworld_sql_action and 2 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu May 29 09:32:45 EDT 2008
Author: kevin.conner at jboss.com
Date: 2008-05-29 09:32:45 -0400 (Thu, 29 May 2008)
New Revision: 20209
Added:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/deployment.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbm-queue-service.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbmq-queue-service.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/deployment.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbm-queue-service.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbmq-queue-service.xml
Modified:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/build.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jboss-esb.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbossesb-service.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/quickstart-ds.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/build.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbossesb-service.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/quickstart-ds.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/build.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/deployment.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jboss-esb.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jbossesb-service.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/quickstart-ds.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/build.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/deployment.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/jboss-esb.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/jbossesb-service.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/quickstart-ds.xml
Log:
Update database dependencies: JBESB-1776
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/build.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/build.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -6,7 +6,7 @@
${line.separator}
</description>
- <property name="additional.deploys" value="jbossesb-service.xml" />
+ <property name="additional.deploys" value="jbossesb-service.xml quickstart-ds.xml" />
<!-- Import the base Ant build script... -->
<import file="../conf/base-build.xml"/>
@@ -28,7 +28,6 @@
<target name="undeploy" depends="dependencies">
<delete file="${org.jboss.esb.server.deploy.dir}/${ant.project.name}.esb"/>
- <delete file="${org.jboss.esb.server.deploy.dir}/quickstart-ds.xml"/>
</target>
<target name="config" depends="compile">
@@ -69,6 +68,7 @@
we are packaging it within an .ear -->
<mkdir dir="${build.dir}/META-INF"/>
<copy file="jboss-esb.xml" todir="${build.dir}/META-INF"/>
+ <copy file="deployment.xml" todir="${build.dir}/META-INF"/>
<delete file="${build.dir}/${ant.project.name}.esb"/>
<jar destfile="${build.dir}/${ant.project.name}.esb">
<fileset dir="${build.dir}">
@@ -76,9 +76,10 @@
<include name="*.war"/>
<include name="action.jar"/>
</fileset>
- <fileset dir="${basedir}">
- <include name="quickstart-ds.xml"/>
+ <fileset dir="${basedir}/src">
+ <include name="**/*.sql"/>
</fileset>
+ <fileset dir="${basedir}" includes="${additional.deploys} ${jms.service.file}"/>
</jar>
</target>
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/deployment.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/deployment.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/deployment.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -0,0 +1,3 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:service=HelloworldHibernateDatabaseInitializer</depends>
+</jbossesb-deployment>
Property changes on: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/deployment.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Rev Date
Name: svn:eol-style
+ native
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbm-queue-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbm-queue-service.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_hibernate_action_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ <!-- redelivery attempt delay in millis -->
+ <attribute name="RedeliveryDelay">1000</attribute>
+ <attribute name="MaxDeliveryAttempts">15</attribute>
+ </mbean>
+
+</server>
Property changes on: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbm-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Rev Date
Name: svn:eol-style
+ native
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbmq-queue-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbmq-queue-service.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbmq-queue-service.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_hibernate_action_Request_esb">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
+ <!-- redelivery attempt delay in millis -->
+ <attribute name="RedeliveryDelay">1000</attribute>
+ </mbean>
+</server>
Property changes on: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbmq-queue-service.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Rev Date
Name: svn:eol-style
+ native
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jboss-esb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jboss-esb.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jboss-esb.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -16,7 +16,7 @@
<jms-bus busid="quickstartEsbChannel">
<jms-message-filter
dest-type="QUEUE"
- dest-name="queue/A"
+ dest-name="queue/quickstart_hibernate_action_Request_esb"
selector="source='fromHelloworldHibernateAction'"
/>
</jms-bus>
@@ -28,7 +28,7 @@
<services>
<service
category="myCategory"
- name="myJmsListener"
+ name="myHibernateListener"
description="Hello World Hibernate Action (esb hibernate listener)">
<listeners>
<hibernate-listener name="HibernateGateway"
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbossesb-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbossesb-service.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/jbossesb-service.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -2,12 +2,12 @@
<server>
<mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer"
- name="jboss.esb:service=QuickstartDatabaseInitializer">
- <attribute name="Datasource">java:/QuickstartDB</attribute>
+ name="jboss.esb:service=HelloworldHibernateDatabaseInitializer">
+ <attribute name="Datasource">java:/HelloworldHibernateDB</attribute>
<attribute name="ExistsSql">select * from orders</attribute>
<attribute name="SqlFiles">
hsqldb/create.sql
</attribute>
- <depends>jboss.jca:name=QuickstartDB,service=DataSourceBinding</depends>
+ <depends>jboss.jca:name=HelloworldHibernateDB,service=DataSourceBinding</depends>
</mbean>
</server>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/quickstart-ds.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/quickstart-ds.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_hibernate_action/quickstart-ds.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
- <jndi-name>QuickstartDB</jndi-name>
+ <jndi-name>HelloworldHibernateDB</jndi-name>
<connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1703</connection-url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<user-name>sa</user-name>
@@ -9,16 +9,15 @@
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
- <depends>jboss:service=Hypersonic</depends>
+ <depends>jboss:service=HelloworldHibernateDB</depends>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
</local-tx-datasource>
- <!-- For hsqldb accessed from jboss only, in-process (standalone) mode -->
- <mbean code="org.jboss.jdbc.HypersonicDatabase"
- name="jboss:service=Hypersonic">
+ <mbean code="org.jboss.internal.soa.esb.dependencies.HypersonicDatabase"
+ name="jboss:service=HelloworldHibernateDB">
<attribute name="Port">1703</attribute>
<attribute name="BindAddress">${jboss.bind.address}</attribute>
- <attribute name="Database">quickstartDB</attribute>
+ <attribute name="Database">HelloworldHibernateDB</attribute>
<attribute name="Silent">true</attribute>
<attribute name="Trace">false</attribute>
<attribute name="No_system_exit">true</attribute>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/build.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/build.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -5,19 +5,13 @@
${line.separator}
</description>
- <property name="additional.deploys" value="jbossesb-service.xml" />
+ <property name="additional.deploys" value="jbossesb-service.xml quickstart-ds.xml" />
<!-- Import the base Ant build script... -->
<import file="../conf/base-build.xml"/>
<target name="quickstart-specific-assemblies" description="Quickstart specific assemblies">
</target>
-
- <target name="quickstart-specific-deploys" description="Quickstart specific deploys">
- <copy file="quickstart-ds.xml"
- todir="${org.jboss.esb.server.deploy.dir}"
- overwrite="false"/>
- </target>
<target name="runtest" depends="dependencies" description="Insert row data into sql table polled by gateway">
<property name="hsqldb.jar"
@@ -25,7 +19,7 @@
<echo>Insert row data into sql table polled by gateway</echo>
<sql
driver="org.hsqldb.jdbcDriver"
- url="jdbc:hsqldb:hsql://localhost:1703"
+ url="jdbc:hsqldb:hsql://localhost:1704"
userid="sa"
autocommit="true"
password="">
@@ -43,7 +37,7 @@
<sql
print="true"
driver="org.hsqldb.jdbcDriver"
- url="jdbc:hsqldb:hsql://localhost:1703"
+ url="jdbc:hsqldb:hsql://localhost:1704"
userid="sa"
autocommit="true"
password="">
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/deployment.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/deployment.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/deployment.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -0,0 +1,3 @@
+<jbossesb-deployment>
+ <depends>jboss.esb:service=HelloworldSqlDatabaseInitializer</depends>
+</jbossesb-deployment>
Property changes on: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/deployment.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:keywords
+ Rev Date
Name: svn:eol-style
+ native
Copied: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbm-queue-service.xml (from rev 20100, labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jbm-queue-service.xml)
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbm-queue-service.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbm-queue-service.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.jms.server.destination.QueueService"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_sql_action_Request_esb"
+ xmbean-dd="xmdesc/Queue-xmbean.xml">
+ <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
+ <depends>jboss.messaging:service=PostOffice</depends>
+ <!-- redelivery attempt delay in millis -->
+ <attribute name="RedeliveryDelay">1000</attribute>
+ <attribute name="MaxDeliveryAttempts">15</attribute>
+ </mbean>
+
+</server>
Copied: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbmq-queue-service.xml (from rev 20100, labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jbmq-queue-service.xml)
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbmq-queue-service.xml (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbmq-queue-service.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
+ name="jboss.esb.quickstart.destination:service=Queue,name=quickstart_sql_action_Request_esb">
+ <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
+ <!-- redelivery attempt delay in millis -->
+ <attribute name="RedeliveryDelay">1000</attribute>
+ </mbean>
+</server>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -3,7 +3,7 @@
<providers>
<sql-provider name="SQLprovider"
- url="jdbc:hsqldb:hsql://localhost:1703"
+ url="jdbc:hsqldb:hsql://localhost:1704"
driver="org.hsqldb.jdbcDriver"
username="sa"
password="">
@@ -25,7 +25,7 @@
<jms-bus busid="quickstartEsbChannel">
<jms-message-filter
dest-type="QUEUE"
- dest-name="queue/A"
+ dest-name="queue/quickstart_sql_action_Request_esb"
selector="source='fromHelloworldSQLAction'"
/>
</jms-bus>
@@ -37,7 +37,7 @@
<services>
<service
category="myCategory"
- name="myJmsListener"
+ name="mySqlListener"
description="Hello World SQL Action (esb jdbc listener)">
<listeners>
<sql-listener name="SqlGateway"
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbossesb-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbossesb-service.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/jbossesb-service.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -2,12 +2,12 @@
<server>
<mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer"
- name="jboss.esb:service=QuickstartDatabaseInitializer">
- <attribute name="Datasource">java:/QuickstartDB</attribute>
+ name="jboss.esb:service=HelloworldSqlDatabaseInitializer">
+ <attribute name="Datasource">java:/HelloworldSqlDB</attribute>
<attribute name="ExistsSql">select * from gateway_table</attribute>
<attribute name="SqlFiles">
hsqldb/create.sql
</attribute>
- <depends>jboss.jca:name=QuickstartDB,service=DataSourceBinding</depends>
+ <depends>jboss.jca:name=HelloworldSqlDB,service=DataSourceBinding</depends>
</mbean>
</server>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/quickstart-ds.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/quickstart-ds.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_sql_action/quickstart-ds.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -1,24 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
- <jndi-name>QuickstartDB</jndi-name>
- <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1703</connection-url>
+ <jndi-name>HelloworldSqlDB</jndi-name>
+ <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1704</connection-url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<user-name>sa</user-name>
<password></password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
- <depends>jboss:service=Hypersonic</depends>
+ <depends>jboss:service=HelloworldSqlDB</depends>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
</local-tx-datasource>
- <!-- For hsqldb accessed from jboss only, in-process (standalone) mode -->
- <mbean code="org.jboss.jdbc.HypersonicDatabase"
- name="jboss:service=Hypersonic">
- <attribute name="Port">1703</attribute>
+ <mbean code="org.jboss.internal.soa.esb.dependencies.HypersonicDatabase"
+ name="jboss:service=HelloworldSqlDB">
+ <attribute name="Port">1704</attribute>
<attribute name="BindAddress">${jboss.bind.address}</attribute>
- <attribute name="Database">quickstartDB</attribute>
+ <attribute name="Database">HelloworldSqlDB</attribute>
<attribute name="Silent">true</attribute>
<attribute name="Trace">false</attribute>
<attribute name="No_system_exit">true</attribute>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/build.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/build.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -5,7 +5,7 @@
${line.separator}
</description>
- <property name="additional.deploys" value="jbossesb-service.xml" />
+ <property name="additional.deploys" value="jbossesb-service.xml quickstart-ds.xml" />
<!-- Import the base Ant build script... -->
<import file="../conf/base-build.xml"/>
@@ -13,24 +13,13 @@
<target name="quickstart-specific-assemblies" description="Quickstart specific assemblies">
</target>
- <target name="quickstart-specific-deploys" description="Quickstart specific deploys">
- <copy file="quickstart-ds.xml"
- todir="${org.jboss.esb.server.deploy.dir}"
- overwrite="false"/>
- </target>
-
- <target name="quickstart-specific-undeploys" description="Quickstart specific undeploys">
- <delete file="${org.jboss.esb.server.deploy.dir}/quickstart-ds.xml"/>
- </target>
-
- <target name="init" depends="dependencies">
+ <target name="quickstart-specific-checks">
<property name="driver" value="org.h2.Driver"/>
<property name="driver.jar" value="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}/lib/h2.jar"/>
- <property name="url" value="jdbc:h2:tcp://localhost:9095/file:${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}/data/h2/h2DB"/>
+ <property name="url" value="jdbc:h2:tcp://localhost:9095/file:${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}/data/h2/HelloworldTxSqlDB"/>
</target>
-
- <target name="runtest" depends="init" description="Insert row data into sql table polled by gateway">
+ <target name="runtest" depends="dependencies" description="Insert row data into sql table polled by gateway">
<echo>Insert row data into sql table polled by gateway</echo>
<sql
driver="${driver}"
@@ -45,7 +34,7 @@
</sql>
</target>
- <target name="create" depends="init" description="create table tx_esb_messages">
+ <target name="create" depends="dependencies" description="create table tx_esb_messages">
<echo>create table tx_esb_messages</echo>
<sql
print="true"
@@ -63,7 +52,7 @@
</sql>
</target>
- <target name="drop" depends="init" description="drop table tx_esb_messages">
+ <target name="drop" depends="dependencies" description="drop table tx_esb_messages">
<echo>drop table tx_esb_messages</echo>
<sql
print="true"
@@ -81,7 +70,7 @@
</sql>
</target>
- <target name="drop2" depends="init" description="drop table gateway_table">
+ <target name="drop2" depends="dependencies" description="drop table gateway_table">
<echo>drop table tx_esb_messages</echo>
<echo>drop table gateway_table</echo>
<sql
@@ -100,7 +89,7 @@
</sql>
</target>
- <target name="select" depends="init" description="select * from gateway_table">
+ <target name="select" depends="dependencies" description="select * from gateway_table">
<echo>Select * from tx_esb_messages</echo>
<sql
print="true"
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/deployment.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/deployment.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/deployment.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -1,3 +1,3 @@
<jbossesb-deployment>
- <depends>jboss.esb:service=QuickstartDatabaseInitializer</depends>
+ <depends>jboss.esb:service=HelloworldTxSqlDatabaseInitializer</depends>
</jbossesb-deployment>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jboss-esb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jboss-esb.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jboss-esb.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -3,8 +3,8 @@
<providers>
<sql-provider name="GatewaySQLprovider"
- url="jdbc:h2:tcp://localhost:9095/file:${jboss.server.data.dir}${/}h2${/}h2DB"
- datasource="java:/QuickstartDB">
+ url="jdbc:h2:tcp://localhost:9095/file:${jboss.server.data.dir}${/}h2${/}HelloworldTxSqlDB"
+ datasource="java:/HelloworldTxSqlDB">
<sql-bus busid="helloSQLChannel" >
<sql-message-filter
tablename="gateway_table"
@@ -19,8 +19,8 @@
</sql-provider>
<sql-provider name="SQLprovider"
- url="jdbc:h2:tcp://localhost:9095/file:${jboss.server.data.dir}${/}h2${/}h2DB"
- datasource="java:/QuickstartDB">
+ url="jdbc:h2:tcp://localhost:9095/file:${jboss.server.data.dir}${/}h2${/}HelloworldTxSqlDB"
+ datasource="java:/HelloworldTxSqlDB">
<sql-bus busid="TxHelloSQLChannel" >
<sql-message-filter
tablename="TX_ESB_MESSAGES"
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jbossesb-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jbossesb-service.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jbossesb-service.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -2,10 +2,10 @@
<server>
<mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer"
- name="jboss.esb:service=QuickstartDatabaseInitializer">
- <attribute name="Datasource">java:/QuickstartDB</attribute>
+ name="jboss.esb:service=HelloworldTxSqlDatabaseInitializer">
+ <attribute name="Datasource">java:/HelloworldTxSqlDB</attribute>
<attribute name="ExistsSql">select * from gateway_table</attribute>
<attribute name="SqlFiles">h2/create.sql</attribute>
- <depends>jboss.jca:name=QuickstartDB,service=DataSourceBinding</depends>
+ <depends>jboss.jca:name=HelloworldTxSqlDB,service=DataSourceBinding</depends>
</mbean>
</server>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/quickstart-ds.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/quickstart-ds.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/quickstart-ds.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -1,25 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<xa-datasource>
- <jndi-name>QuickstartDB</jndi-name>
+ <jndi-name>HelloworldTxSqlDB</jndi-name>
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
<track-connection-by-tx/>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
- <xa-datasource-property name="URL">jdbc:h2:tcp://localhost:9095/file:${jboss.server.data.dir}/h2/h2DB</xa-datasource-property>
+ <xa-datasource-property name="URL">jdbc:h2:tcp://localhost:9095/file:${jboss.server.data.dir}/h2/HelloworldTxSqlDB</xa-datasource-property>
<xa-datasource-property name="User">sa</xa-datasource-property>
<xa-datasource-property name="Password"></xa-datasource-property>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
- <depends>jboss:service=h2,database=h2DB</depends>
+ <depends>jboss:service=HelloworldTxSqlDB</depends>
</xa-datasource>
- <mbean code="org.jboss.internal.soa.esb.dependencies.H2Database" name="jboss:service=h2,database=h2DB">
- <attribute name="Database">h2DB</attribute>
+ <mbean code="org.jboss.internal.soa.esb.dependencies.H2Database" name="jboss:service=HelloworldTxSqlDB">
+ <attribute name="Database">HelloworldTxSqlDB</attribute>
<attribute name="ServerMode">true</attribute>
<attribute name="Port">9095</attribute>
<attribute name="InMemoryMode">false</attribute>
</mbean>
-
</datasources>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/build.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/build.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -5,21 +5,11 @@
${line.separator}
</description>
- <property name="additional.deploys" value="jbossesb-service.xml" />
+ <property name="additional.deploys" value="jbossesb-service.xml quickstart-ds.xml" />
<!-- Import the base Ant build script... -->
<import file="../conf/base-build.xml"/>
- <target name="quickstart-specific-deploys">
- <copy file="quickstart-ds.xml"
- todir="${org.jboss.esb.server.deploy.dir}"
- overwrite="false"/>
- </target>
-
- <target name="quickstart-specific-undeploys">
- <delete file="${org.jboss.esb.server.deploy.dir}/quickstart-ds.xml"/>
- </target>
-
<target name="runtest" depends="compile"
description="sends a JMS message to queue/quickstart_jms_transacted_Request_gw">
<echo>Runs Test JMS Sender</echo>
@@ -39,7 +29,7 @@
<sql
print="true"
driver="org.hsqldb.jdbcDriver"
- url="jdbc:hsqldb:hsql://localhost:1703"
+ url="jdbc:hsqldb:hsql://localhost:1706"
userid="sa"
autocommit="true"
password="">
@@ -60,7 +50,7 @@
<sql
print="true"
driver="org.hsqldb.jdbcDriver"
- url="jdbc:hsqldb:hsql://localhost:1703"
+ url="jdbc:hsqldb:hsql://localhost:1706"
userid="sa"
autocommit="true"
password="">
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/deployment.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/deployment.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/deployment.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -1,4 +1,5 @@
<jbossesb-deployment>
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_jms_transacted_Request_esb</depends>
<depends>jboss.esb.quickstart.destination:service=Queue,name=quickstart_jms_transacted_Request_gw</depends>
+ <depends>jboss.esb:service=JmsTransactedDatabaseInitializer</depends>
</jbossesb-deployment>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/jboss-esb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/jboss-esb.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/jboss-esb.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -44,7 +44,7 @@
</action>
<action name="insertDBAction" class="org.jboss.soa.esb.samples.quickstart.jmstransacted.test.DBInsertAction">
- <property name="datasource-name" value="java:QuickstartDS"/>
+ <property name="datasource-name" value="java:JmsTransactedDB"/>
<property name="db-insert-sql" value="insert into jms_transacted_table(data_column) values(?)"/>
</action>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/jbossesb-service.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/jbossesb-service.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/jbossesb-service.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -2,12 +2,12 @@
<server>
<mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer"
- name="jboss.esb:service=QuickstartDatabaseInitializer">
- <attribute name="Datasource">java:/QuickstartDS</attribute>
+ name="jboss.esb:service=JmsTransactedDatabaseInitializer">
+ <attribute name="Datasource">java:/JmsTransactedDB</attribute>
<attribute name="ExistsSql">select * from jms_transacted_table</attribute>
<attribute name="SqlFiles">
hsqldb/create.sql
</attribute>
- <depends>jboss.jca:name=QuickstartDS,service=DataSourceBinding</depends>
+ <depends>jboss.jca:name=JmsTransactedDB,service=DataSourceBinding</depends>
</mbean>
</server>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/quickstart-ds.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/quickstart-ds.xml 2008-05-29 12:07:04 UTC (rev 20208)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/jms_transacted/quickstart-ds.xml 2008-05-29 13:32:45 UTC (rev 20209)
@@ -1,24 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
- <jndi-name>QuickstartDS</jndi-name>
- <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1703</connection-url>
+ <jndi-name>JmsTransactedDB</jndi-name>
+ <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1706</connection-url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<user-name>sa</user-name>
<password></password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
- <depends>jboss:service=Hypersonic</depends>
+ <depends>jboss:service=JmsTransactedDB</depends>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
</local-tx-datasource>
- <!-- For hsqldb accessed from jboss only, in-process (standalone) mode -->
- <mbean code="org.jboss.jdbc.HypersonicDatabase"
- name="jboss:service=Hypersonic">
- <attribute name="Port">1703</attribute>
+ <mbean code="org.jboss.internal.soa.esb.dependencies.HypersonicDatabase"
+ name="jboss:service=JmsTransactedDB">
+ <attribute name="Port">1706</attribute>
<attribute name="BindAddress">${jboss.bind.address}</attribute>
- <attribute name="Database">QuickstartDB</attribute>
+ <attribute name="Database">JmsTransactedDB</attribute>
<attribute name="Silent">true</attribute>
<attribute name="Trace">false</attribute>
<attribute name="No_system_exit">true</attribute>
More information about the jboss-svn-commits
mailing list