[jboss-svn-commits] JBL Code SVN: r19885 - in labs/jbossesb/workspace/CDL/product/samples/trailblazer: banks and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed May 7 11:12:19 EDT 2008
Author: jeff.yuchang
Date: 2008-05-07 11:12:19 -0400 (Wed, 07 May 2008)
New Revision: 19885
Modified:
labs/jbossesb/workspace/CDL/product/samples/trailblazer/banks/bank.properties
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/deployment.xml
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jboss-esb.xml
labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/xml2csv.xsl
labs/jbossesb/workspace/CDL/product/samples/trailblazer/readme.txt
Log:
Update the sample.
* take out the dependency on pi4soa
* update the run instruction
Modified: labs/jbossesb/workspace/CDL/product/samples/trailblazer/banks/bank.properties
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/banks/bank.properties 2008-05-07 13:38:42 UTC (rev 19884)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/banks/bank.properties 2008-05-07 15:12:19 UTC (rev 19885)
@@ -1,5 +1,5 @@
jms.provider.url=localhost
-file.monitored.directory=/home/jeffyu/tmp/input
-file.output.directory=/home/jeffyu/tmp/output
+file.monitored.directory=/tmp/input
+file.output.directory=/tmp/output
jms.queue.in=queue/jms-tb-jmsBankRequestQueue
jms.queue.out=queue/esb-tb-jmsBankGatewayResponseQueue
Modified: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/deployment.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/deployment.xml 2008-05-07 13:38:42 UTC (rev 19884)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/deployment.xml 2008-05-07 15:12:19 UTC (rev 19885)
@@ -1,12 +1,11 @@
<jbossesb-deployment>
- <depends>pi4soa:service=pi4soa</depends>
<depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-creditAgencyQueue</depends>
<depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-creditAgencyQueue_reply</depends>
- <depends>jboss.esb.trailblazer.destination:service=Queue,name=jms-tb-jmsBankRequestQueue</depends>
- <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-jmsBankRequestQueue</depends>
- <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-jmsBankResponseQueue</depends>
- <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-jmsBankGatewayResponseQueue</depends>
- <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-fileBankRequestQueue</depends>
- <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-fileBankResponseQueue</depends>
- <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-customerNotifier</depends>
+ <depends>jboss.esb.trailblazer.destination:service=Queue,name=jms-tb-jmsBankRequestQueue</depends>
+ <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-jmsBankRequestQueue</depends>
+ <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-jmsBankResponseQueue</depends>
+ <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-jmsBankGatewayResponseQueue</depends>
+ <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-fileBankRequestQueue</depends>
+ <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-fileBankResponseQueue</depends>
+ <depends>jboss.esb.trailblazer.destination:service=Queue,name=esb-tb-customerNotifier</depends>
</jbossesb-deployment>
Modified: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jboss-esb.xml 2008-05-07 13:38:42 UTC (rev 19884)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/jboss-esb.xml 2008-05-07 15:12:19 UTC (rev 19885)
@@ -32,7 +32,7 @@
<fs-provider name="FSprovider1">
<fs-bus busid="fileBankChannel" >
<fs-message-filter
- directory="/home/jeffyu/tmp/output"
+ directory="/tmp/output"
input-suffix=".quote"
work-suffix=".esbWorking"
post-delete="true"
Modified: labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/xml2csv.xsl
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/xml2csv.xsl 2008-05-07 13:38:42 UTC (rev 19884)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/esb/conf/xml2csv.xsl 2008-05-07 15:12:19 UTC (rev 19885)
@@ -6,5 +6,19 @@
<xsl:value-of select="@name"/>
<xsl:value-of select="$delimiter"/>
<xsl:value-of select="@ssn"/>
+ <xsl:value-of select="$delimiter"/>
+ <xsl:value-of select="@address"/>
+ <xsl:value-of select="$delimiter"/>
+ <xsl:value-of select="@employerName"/>
+ <xsl:value-of select="$delimiter"/>
+ <xsl:value-of select="@salary"/>
+ <xsl:value-of select="$delimiter"/>
+ <xsl:value-of select="@loanAmount"/>
+ <xsl:value-of select="$delimiter"/>
+ <xsl:value-of select="@loanDuration"/>
+ <xsl:value-of select="$delimiter"/>
+ <xsl:value-of select="@email"/>
+ <xsl:value-of select="$delimiter"/>
+ <xsl:value-of select="@creditScore"/>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
Modified: labs/jbossesb/workspace/CDL/product/samples/trailblazer/readme.txt
===================================================================
--- labs/jbossesb/workspace/CDL/product/samples/trailblazer/readme.txt 2008-05-07 13:38:42 UTC (rev 19884)
+++ labs/jbossesb/workspace/CDL/product/samples/trailblazer/readme.txt 2008-05-07 15:12:19 UTC (rev 19885)
@@ -5,8 +5,8 @@
Required to run the Trailblazer:
- ANT
- A mail server to send email notifications
-- JBoss AS 4.0.4 or higher with EJB3 and JBossWS support. You can install the latest JBoss AS JEMS installer and select the "EJB3" install config to get the right one installed.
-- JBoss AS 4.0.4 or higher with the JBoss ESB SAR deployment (jbossesb.sar).
+- JBoss AS 4.2.1 or higher with EJB3 and JBossWS support. You can install the latest JBoss AS JEMS installer and select the "EJB3" install config to get the right one installed.
+- JBoss AS 4.2.1 or higher with the JBoss ESB SAR deployment (jbossesb.sar).
Settings required to edit before running:
@@ -16,16 +16,27 @@
File : deployment.properties (install/deployment.properties)
- Update the app server location settings.
+File : bank.properties (TB_ROOT/banks/bank.properties)
+- Update the file.monitored.directory and file.output.directory properties' value properly.
+ These are input and output folder needs to be specified, they are set to /tmp/input /tmp/output by default.
+
+File : jboss-esb.xml (TB_ROOT/esb/conf/jboss-esb.xml)
+- there is a "<fs-provider>..</fs-provider>" block, update the "directory" attribute value as same as file.output.directory value in bank.properties file.
+
-------------------------------------------
To run the Trailblazer, follow these steps:
-1 - run your JBoss AS - you will need to have the 4.0.4 or higher with the EJB3 support installed. This is required because the TB uses the JSR-181 pojo style web service.
+1 - run your JBoss AS - you will need to have the 4.2.1 or higher with the EJB3 support installed. This is required because the TB uses the JSR-181 pojo style web service.
2 - from the TB_ROOT, execute the command to start the ESB: "ant deploy"
* this should deploy the ESB and WAR files to your JBoss AS server/default.
-3 - from the TB_ROOT/banks execute the command to start the Bank service: "ant runJMSBank"
+3 - from the TB_ROOT/banks execute the command to start the JMS Bank service: "ant runJMSBank"
-4 - from the jsp: localhost:8080/trailblazer
+4 - start another window/shell, from the TB_ROOT/banks execute the command to start the File bank service: "ant runFileBank"
-That's it. Now you can submit quotes, and you should receive an email at the specified address on the page.
+5 - from the jsp: localhost:8080/trailblazer.
+
+That's it. Now you can submit quotes, You will see either a loan request rejected (single email)
+because the score is less than 4, or two emails (one from JMS bank and one from FileBased
+bank) with valid quotes.
More information about the jboss-svn-commits
mailing list