[jboss-svn-commits] JBL Code SVN: r14857 - labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Sep 4 07:36:37 EDT 2007
Author: tfennelly
Date: 2007-09-04 07:36:37 -0400 (Tue, 04 Sep 2007)
New Revision: 14857
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/readme.txt
Log:
helloworld_sql_action cleanups
http://jira.jboss.com/jira/browse/JBESB-982
http://jira.jboss.com/jira/browse/JBESB-983
Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/build.xml 2007-09-04 11:30:26 UTC (rev 14856)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/build.xml 2007-09-04 11:36:37 UTC (rev 14857)
@@ -11,52 +11,53 @@
<!-- Import the base Ant build script... -->
<import file="../conf/base-build.xml"/>
- <target name="runtest"
- description="Insert row data into sql table polled by gateway">
+ <target name="runtest" description="Insert row data into sql table polled by gateway">
<echo>Insert row data into sql table polled by gateway</echo>
- <exec executable="mysql" input="populate.sql" >
+
+ <input message="Please enter the root password for your running MySQL Server. Press return if password is blank." defaultvalue="" addproperty="root-pw" />
+ <exec executable="mysql" input="populate.sql" >
<arg value="--user=root" />
- <arg value="--password=" />
+ <arg value="--password=${root-pw}" />
<arg value="--database=test_sql_gateway" />
</exec>
</target>
- <target name="dropdb"
- description="drop database">
+ <target name="dropdb" description="drop database">
<echo>Drop database</echo>
+ <input message="Please enter the root password for your running MySQL Server. Press return if password is blank." defaultvalue="" addproperty="root-pw" />
<exec executable="mysql" >
<arg value="--user=root" />
- <arg value="--password=" />
+ <arg value="--password=${root-pw}" />
<arg value="--execute=drop database test_sql_gateway" />
</exec>
</target>
- <target name="createdb"
- description="createdb">
+ <target name="createdb" description="createdb">
<echo>Create database and test table</echo>
+ <input message="Please enter the root password for your running MySQL Server. Press return if password is blank." defaultvalue="" addproperty="root-pw" />
<exec executable="mysql" input="create.sql" >
<arg value="--user=root" />
- <arg value="--password=" />
+ <arg value="--password=${root-pw}" />
</exec>
</target>
- <target name="purgetable"
- description="purgetable">
+ <target name="purgetable" description="purgetable">
<echo>Purge sql table polled by gateway</echo>
+ <input message="Please enter the root password for your running MySQL Server. Press return if password is blank." defaultvalue="" addproperty="root-pw" />
<exec executable="mysql" >
<arg value="--user=root" />
- <arg value="--password=" />
+ <arg value="--password=${root-pw}" />
<arg value="--database=test_sql_gateway" />
<arg value="--execute=delete from gateway_table" />
</exec>
</target>
- <target name="select"
- description="select * from gateway_table">
+ <target name="select" description="select * from gateway_table">
<echo>Select * from gateway_table</echo>
+ <input message="Please enter the root password for your running MySQL Server. Press return if password is blank." defaultvalue="" addproperty="root-pw" />
<exec executable="mysql" >
<arg value="--user=root" />
- <arg value="--password=" />
+ <arg value="--password=${root-pw}" />
<arg value="--database=test_sql_gateway" />
<arg value="--execute=select * from gateway_table" />
</exec>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml 2007-09-04 11:30:26 UTC (rev 14856)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml 2007-09-04 11:36:37 UTC (rev 14857)
@@ -6,7 +6,7 @@
url="jdbc:mysql://localhost:3306/test_sql_gateway"
driver="com.mysql.jdbc.Driver"
username="root"
- password=""
+ password="root"
>
<sql-bus busid="helloSQLChannel" >
<sql-message-filter
Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/readme.txt 2007-09-04 11:30:26 UTC (rev 14856)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/readme.txt 2007-09-04 11:36:37 UTC (rev 14857)
@@ -7,8 +7,12 @@
Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts
and a more detailed descripton of the different ways to run the quickstarts.
- Make sure that you have MySQL running before starting this quickstart. Once
- it is running, execute 'ant createdb' to create the database.
+ NOTE:
+ 1. MySQL must be installed and running. You'll need to know the root password and
+ this password must also be set on the <sql-provider> in the jboss-esb.xml file.
+ 2. The "mysql" shell/script interpreter must be installed on the system path.
+ 3. The MySQL drivers must be installed in your JBoss Application Server in the
+ server/default/lib dir (server/<server>/lib).
To Run standalone mode:
=======================
More information about the jboss-svn-commits
mailing list