[jboss-svn-commits] JBL Code SVN: r5509 - in labs/jbossesb/branches/refactor/product/docs: Install/database samples/trailblazer/bankloanbrokerdemo samples/trailblazer/bankloanbrokerdemo/banks samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks samples/trailblazer/bankloanbrokerdemo/banks/test/org/jboss/soa/esb/samples/loanbroker/banks samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/actions samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/adapters samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web samples/trailblazer/bankloanbrokerdemo/lib
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Aug 6 10:53:50 EDT 2006
Author: arvinder
Date: 2006-08-06 10:53:23 -0400 (Sun, 06 Aug 2006)
New Revision: 5509
Added:
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/.classpath
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/.project
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossall-client.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-common.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-listeners.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-processors.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-services.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/junit.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/log4j.jar
Removed:
labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-MySql-DB.sql
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossall-client.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-common.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-listeners.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-processors.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-services.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/junit.jar
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/log4j.jar
Modified:
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/JBoss ESB Loan Broker Banks Guide.doc
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/JBoss ESB Loan Broker Banks Guide.html
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/bank.properties
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/build.xml
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerFlatFile.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/test/org/jboss/soa/esb/samples/loanbroker/banks/JmsProcessorTest.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/actions/ProcessCreditRequest.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/actions/ProcessCreditResponse.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/adapters/CustomerAdapter.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditAgency.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditAgencyJMSConsumer.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckRequest.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckResponse.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/CreditRating.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/Customer.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/LoanBrokerConstants.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LaunchDummy.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LoanBrokerWS.java
labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/WebCustomer.java
Log:
Merge with trunk
Deleted: labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-MySql-DB.sql
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-MySql-DB.sql 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/Install/database/JBossESB-MySql-DB.sql 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,91 +0,0 @@
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-DROP TABLE IF EXISTS `batches`;
-CREATE TABLE `batches` (
- `batch_num` bigint(20) NOT NULL,
- `seq` int(11) NOT NULL,
- `data` text,
- PRIMARY KEY (`batch_num`,`seq`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
-
-/*!40000 ALTER TABLE `batches` DISABLE KEYS */;
-LOCK TABLES `batches` WRITE;
-set autocommit=0;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE `batches` ENABLE KEYS */;
-commit;
-DROP TABLE IF EXISTS `object_snap`;
-CREATE TABLE `object_snap` (
- `uid` bigint(20) NOT NULL,
- `stamp` bigint(20) default NULL,
- `snap_type` text,
- `object_uid` bigint(20) default NULL,
- `batch_num` bigint(20) default NULL,
- `xml_data` text,
- PRIMARY KEY (`uid`),
- KEY `ix1_object_snap` USING BTREE (`batch_num`,`uid`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
-
-/*!40000 ALTER TABLE `object_snap` DISABLE KEYS */;
-LOCK TABLES `object_snap` WRITE;
-set autocommit=0;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE `object_snap` ENABLE KEYS */;
-commit;
-DROP TABLE IF EXISTS `people_index`;
-CREATE TABLE `people_index` (
- `uid` bigint(20) NOT NULL,
- `stamp` bigint(20) default NULL,
- `latest_snap_uid` bigint(20) default NULL,
- `latest_snap_date` text,
- `name` text,
- `phone` text,
- `address` text,
- PRIMARY KEY (`uid`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
-
-/*!40000 ALTER TABLE `people_index` DISABLE KEYS */;
-LOCK TABLES `people_index` WRITE;
-set autocommit=0;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE `people_index` ENABLE KEYS */;
-commit;
-DROP TABLE IF EXISTS `uid_table`;
-CREATE TABLE `uid_table` (
- `uid` int(11) NOT NULL,
- `sequence_name` text NOT NULL,
- `last_used_uid` bigint(20) NOT NULL,
- PRIMARY KEY (`uid`),
- UNIQUE KEY `ix1_uid_table` (`sequence_name`(767))
-) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
-
-/*!40000 ALTER TABLE `uid_table` DISABLE KEYS */;
-LOCK TABLES `uid_table` WRITE;
-set autocommit=0;
-INSERT INTO `uid_table` (`uid`, `sequence_name`, `last_used_uid`) VALUES (1,'jbossEsb_objuid',10500000),(2,'jbossEsb_batchuid',251000);
-UNLOCK TABLES;
-/*!40000 ALTER TABLE `uid_table` ENABLE KEYS */;
-commit;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/.classpath (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/.classpath)
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/.project (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/.project)
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/JBoss ESB Loan Broker Banks Guide.doc
===================================================================
(Binary files differ)
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/JBoss ESB Loan Broker Banks Guide.html
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/JBoss ESB Loan Broker Banks Guide.html 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/JBoss ESB Loan Broker Banks Guide.html 2006-08-06 14:53:23 UTC (rev 5509)
@@ -28,16 +28,16 @@
<o:Author>kstam</o:Author>
<o:LastAuthor>kstam</o:LastAuthor>
<o:Revision>2</o:Revision>
- <o:TotalTime>2</o:TotalTime>
- <o:Created>2006-08-01T14:04:00Z</o:Created>
- <o:LastSaved>2006-08-01T14:04:00Z</o:LastSaved>
+ <o:TotalTime>7</o:TotalTime>
+ <o:Created>2006-08-03T14:42:00Z</o:Created>
+ <o:LastSaved>2006-08-03T14:42:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
- <o:Words>719</o:Words>
- <o:Characters>4103</o:Characters>
+ <o:Words>743</o:Words>
+ <o:Characters>4237</o:Characters>
<o:Company>JBoss, Inc.</o:Company>
- <o:Lines>34</o:Lines>
+ <o:Lines>35</o:Lines>
<o:Paragraphs>9</o:Paragraphs>
- <o:CharactersWithSpaces>4813</o:CharactersWithSpaces>
+ <o:CharactersWithSpaces>4971</o:CharactersWithSpaces>
<o:Version>11.6568</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
@@ -183,8 +183,7 @@
<p class=MsoNormal><o:p> </o:p></p>
-<p class=MsoNormal>By: Kurt <span class=SpellE>Stam</span> (<a
-href="mailto:kurt.stam at jboss.com">kurt.stam at jboss.com</a>)</p>
+<p class=MsoNormal>By: Kurt Stam (<a href="mailto:kurt.stam at jboss.com">kurt.stam at jboss.com</a>)</p>
<p class=MsoNormal><o:p> </o:p></p>
@@ -303,8 +302,9 @@
<p class=MsoNormal><span style='background:white;mso-highlight:white'>The Flat
File Based Bank uses the property '<span class=SpellE>file.monitored.directory</span>'
-which by default is set to 'C<span class=GramE>:/</span>Temp'.</span> <span
-style='background:white;mso-highlight:white'>You can start this bank by typing:</span></p>
+which by default is set to 'C<span class=GramE>:\</span>Temp\<span
+class=SpellE>BankInput</span>'.</span> <span style='background:white;
+mso-highlight:white'>You can start this bank by typing:</span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
@@ -316,6 +316,14 @@
class=SpellE>runFileBank</span></span><span style='font-size:10.0pt;font-family:
"Courier New"'><o:p></o:p></span></p>
+<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
+style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
+
+<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
+style='font-size:10.0pt;font-family:"Courier New"'>* Not of caution, there is
+no filter set in the <span class=SpellE>poller</span> code, so it will pick up
+and try to move any files it finds.<o:p></o:p></span></p>
+
<h3><span style='background:white;mso-highlight:white'>2.2 Processing details</span></h3>
<p class=MsoNormal><span style='background:white;mso-highlight:white'>The <span
@@ -353,7 +361,7 @@
<p class=MsoNormal><span style='background:white;mso-highlight:white'>You can
test whether or not the bank is working by dropping a file in the monitored
-directory (C:\Temp).Let's say we</span> <span style='background:white;
+directory (C:\Temp\BankInput).Let's say we</span> <span style='background:white;
mso-highlight:white'>use a file with name 'request.txt'. The file should be
ASCII and can contain the following line:</span></p>
@@ -368,10 +376,10 @@
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='background:white;mso-highlight:white'>The file
-should get moved to the C:\Temp\processed directory, and in the
-C:\Temp\outgoing directory a reply file should</span> <span style='background:
-white;mso-highlight:white'>appear with the name 'reply_to_request.txt'. It
-should contain the line:</span></p>
+should get moved to the C:\Temp\BankInput\processed directory, and in the
+C:\Temp\ <span class=SpellE>BankInput</span>\outgoing directory a reply file
+should</span> <span style='background:white;mso-highlight:white'>appear with
+the name 'reply_to_request.txt'. It should contain the line:</span></p>
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
@@ -413,11 +421,11 @@
<p class=MsoNormal><span style='background:white;mso-highlight:white'>Before
starting the bank you need to bring up your JMS provider. For the example this
is the JBoss AS. We are using</span> <span style='background:white;mso-highlight:
-white'>the default queues (A and B). The JMS bank uses the properties: <span
+white'>the default queues (C and D). The JMS bank uses the properties: <span
class=SpellE>jms.provider.url</span>, <span class=SpellE>jms.queue.in</span>
and <span class=SpellE>jms.queue.out</span>. By</span> <span style='background:
white;mso-highlight:white'>default these are set to '<span class=SpellE>localhost</span>',
-'queue/A' and 'queue/B'. So, by default, it assumes <st1:place w:st="on"><st1:City
+'queue/C' and 'queue/D'. So, by default, it assumes <st1:place w:st="on"><st1:City
w:st="on">JBoss</st1:City> <st1:State w:st="on">AS</st1:State></st1:place> is
running on the <span class=SpellE>localhost</span>.</span> <span
style='background:white;mso-highlight:white'>Next you can start the JMS Based
@@ -436,15 +444,15 @@
<h3><span style='background:white;mso-highlight:white'>3.2 Processing details</span></h3>
<p class=MsoNormal><span style='background:white;mso-highlight:white'>The <span
-class=SpellE>JMSManager</span> listens to an incoming queue (by default queue/<span
-class=GramE>A</span> on <span class=SpellE>localhost</span>). It consumes the</span>
-<span style='background:white;mso-highlight:white'>message assuming it is a <span
+class=SpellE>JMSManager</span> listens to an incoming queue (by default queue/C
+on <span class=SpellE>localhost</span>). It consumes the</span> <span
+style='background:white;mso-highlight:white'>message assuming it is a <span
class=SpellE>TextMessage</span>, and that the text is an XML structure that can
be marshaled</span> <span style='background:white;mso-highlight:white'>into a <span
class=SpellE>BankQuoteRequest</span>. The request will be processed and a <span
class=SpellE>BankQuote</span> Reply will be serialized to XML</span> <span
style='background:white;mso-highlight:white'>and send to the outgoing queue (by
-default this is queue/B on <span class=SpellE>localhost</span>). If the
+default this is queue/D on <span class=SpellE>localhost</span>). If the
processing results</span> <span style='background:white;mso-highlight:white'>in
an error a <span class=SpellE>BankQuoteReply</span> with <span class=SpellE>ErrorCode</span>
other then 0 is send to the outgoing queue.</span></p>
@@ -453,7 +461,7 @@
<p class=MsoNormal><span style='background:white;mso-highlight:white'>The unit
test <span class=SpellE>JMSProcessorTest</span> drops a <span class=SpellE>BankQuoteRequest</span>
-Message on the queue/A of <span class=SpellE>localhost</span>. You can use</span></p>
+Message on the queue/C of <span class=SpellE>localhost</span>. You can use</span></p>
<p class=MsoNormal><span class=GramE><span style='background:white;mso-highlight:
white'>this</span></span><span style='background:white;mso-highlight:white'>
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/bank.properties
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/bank.properties 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/bank.properties 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,5 +1,5 @@
-file.monitored.directory=C:/Temp
+file.monitored.directory=C:/Temp/BankInput
jms.provider.url=localhost
-jms.queue.in=queue/B
-jms.queue.out=queue/A
+jms.queue.in=queue/C
+jms.queue.out=queue/D
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/build.xml
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/build.xml 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/build.xml 2006-08-06 14:53:23 UTC (rev 5509)
@@ -2,8 +2,7 @@
<property file="bank.properties"/>
<!-- Some default build locations -->
- <property name="org.jboss.esb.root.dir" value="../../../../../"/>
- <property name="org.jboss.esb.ext.lib.dir" value="${org.jboss.esb.root.dir}/lib/ext"/>
+ <property name="org.jboss.esb.ext.lib.dir" value="../lib"/>
<property name="org.jboss.esb.samples.loanbroker.banks.dest" value="${basedir}/build"/>
<property name="org.jboss.esb.samples.loanbroker.banks.classes.dir" value="${basedir}/build/classes/banks/"/>
<property name="org.jboss.esb.samples.loanbroker.banks.testclasses.dir" value="${basedir}/build/classes/tests/"/>
@@ -22,7 +21,7 @@
<fileset dir="${org.jboss.esb.ext.lib.dir}" includes="log4j.jar,jbossall-client.jar"/>
<pathelement location="${org.jboss.esb.samples.loanbroker.banks.classes.dir}"/>
<pathelement location="${org.jboss.esb.samples.loanbroker.banks.testclasses.dir}"/>
- <fileset dir="${basedir}" includes="log4j.xml"/>
+
</path>
<target name="clean">
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerFlatFile.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerFlatFile.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/src/org/jboss/soa/esb/samples/loanbroker/banks/ManagerFlatFile.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -185,13 +185,19 @@
public static void main(String[] args)
{
DOMConfigurator.configure("log4j.xml");
- String monitoredDirectoryStr = "C:/Temp";
+ String monitoredDirectoryStr = "C:/Temp/BankInput";
if (args!=null && args.length > 0) {
monitoredDirectoryStr=args[0];
}
File monitoredDirectory = new File(monitoredDirectoryStr);
if (!monitoredDirectory.exists() || !monitoredDirectory.isDirectory()){
- System.out.println("Invalid directory " + monitoredDirectory.getAbsolutePath());
+ System.err.println("Invalid directory " + monitoredDirectory.getAbsolutePath());
+ System.out.println("Treying to create the directory.");
+ try {
+ monitoredDirectory.mkdir();
+ } catch (SecurityException e) {
+ e.printStackTrace();
+ }
}
DirectoryPoller poller = new DirectoryPoller(monitoredDirectory);
poller.addPollManager(new ManagerFlatFile());
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/test/org/jboss/soa/esb/samples/loanbroker/banks/JmsProcessorTest.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/test/org/jboss/soa/esb/samples/loanbroker/banks/JmsProcessorTest.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/banks/test/org/jboss/soa/esb/samples/loanbroker/banks/JmsProcessorTest.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -43,7 +43,7 @@
public class JmsProcessorTest {
private Logger logger = Logger.getLogger(this.getClass());
-
+
/**
* This can be activate if the server is running and you want
* to drop a message on the queue
@@ -51,7 +51,7 @@
*/
@Test public void sendLoanRequestXML()
{
-
+
// Building a BankQuoteRequest
BankQuoteRequest bankQuoteRequest = new BankQuoteRequest();
bankQuoteRequest.setSsn(123456890);
@@ -71,7 +71,7 @@
properties.put(Context.URL_PKG_PREFIXES , "org.jnp.interfaces");
properties.put(Context.PROVIDER_URL , "localhost");
InitialContext ctx = new InitialContext(properties);
- queue = (Queue) ctx.lookup("queue/A");
+ queue = (Queue) ctx.lookup("queue/C");
QueueConnectionFactory factory = (QueueConnectionFactory) ctx
.lookup("ConnectionFactory");
QueueConnection cnn = factory.createQueueConnection();
@@ -89,7 +89,7 @@
logger.log(Priority.ERROR, "Is the server up and running?");
}
}
-
+
public static junit.framework.Test suite() {
return new JUnit4TestAdapter(JmsProcessorTest.class);
}
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/actions/ProcessCreditRequest.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/actions/ProcessCreditRequest.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/actions/ProcessCreditRequest.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.actions;
import org.jboss.soa.esb.processors.*;
@@ -11,10 +33,14 @@
import java.util.Random;
+import java.io.Serializable;
-public class ProcessCreditRequest extends EsbMsgProcessor
+
+
+public class ProcessCreditRequest extends MsgProcessor
{
public Integer creditScore;
+ private CreditCheckResponse creditResponse;
/*
* the base class sets up the parameter tree being used by this action class
@@ -35,6 +61,8 @@
//use a dummy score between 0 and 10
Random generator = new Random();
creditScore = new Integer(generator.nextInt(10));
+ //create our Response
+ creditResponse = new CreditCheckResponse(creditRequest.requestID, creditScore);
}
protected void checkParms() throws Exception
@@ -43,8 +71,8 @@
//this is how the response is sent back, through OK notification
//you could also send back a special ERROR credit score condition
- public Object getOkNotification()
+ public Serializable getOkNotification()
{
- return creditScore;
+ return creditResponse;
}
}
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/actions/ProcessCreditResponse.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/actions/ProcessCreditResponse.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/actions/ProcessCreditResponse.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.actions;
import java.util.Random;
@@ -6,10 +28,10 @@
import javax.jms.ObjectMessage;
import org.jboss.soa.esb.helpers.DomElement;
-import org.jboss.soa.esb.processors.EsbMsgProcessor;
+import org.jboss.soa.esb.processors.MsgProcessor;
import org.jboss.soa.esb.samples.loanbroker.creditagency.CreditCheckRequest;
-public class ProcessCreditResponse extends EsbMsgProcessor {
+public class ProcessCreditResponse extends MsgProcessor {
public ProcessCreditResponse(DomElement p_oP) throws Exception {
super(p_oP);
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/adapters/CustomerAdapter.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/adapters/CustomerAdapter.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/adapters/CustomerAdapter.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.adapters;
import java.text.*;
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditAgency.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditAgency.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditAgency.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.creditagency;
public class CreditAgency {
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditAgencyJMSConsumer.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditAgencyJMSConsumer.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditAgencyJMSConsumer.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.creditagency;
import org.jboss.soa.esb.samples.loanbroker.domain.*;
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckRequest.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckRequest.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckRequest.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.creditagency;
import java.io.Serializable;
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckResponse.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckResponse.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/creditagency/CreditCheckResponse.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.creditagency;
import java.io.*;
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/CreditRating.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/CreditRating.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/CreditRating.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.domain;
import java.util.*;
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/Customer.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/Customer.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/Customer.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.domain;
import java.util.*;
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/LoanBrokerConstants.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/LoanBrokerConstants.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/domain/LoanBrokerConstants.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.domain;
public class LoanBrokerConstants {
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LaunchDummy.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LaunchDummy.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LaunchDummy.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.web;
import org.jboss.soa.esb.listeners.JmsQueueListener;
@@ -7,8 +29,18 @@
/**
* @param args
*/
- public static void main(String[] args) throws Exception{
- JmsQueueListener jms = new JmsQueueListener(args [0]);
+ public static void main(String[] args) throws Exception
+ {
+ final String CONFIG_FILE = "conf/LoanBrokerConfig.xml";
+ String configFile=null;
+ if (args.length < 1) {
+ System.out.println("Going to use default path to config file:" + CONFIG_FILE);
+ configFile=CONFIG_FILE;
+ } else {
+ configFile=args[0];
+ }
+ System.out.println("Using configFile=" + configFile);
+ JmsQueueListener jms = new JmsQueueListener(configFile);
}
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LoanBrokerWS.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LoanBrokerWS.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/LoanBrokerWS.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -61,8 +61,8 @@
//get handle to the JBossESB Event object store
IpersistHandler esbHandler = PersistHandlerFactory.getPersistHandler("remote",
- EsbSysProps.getJndiServerType(),
- EsbSysProps.getJndiServerURL());
+ SystemProperties.getJndiServerType(),
+ SystemProperties.getJndiServerURL());
//convert the WebCustomer to an ESB Customer capable of being persisted to the event store
long lUid = esbHandler.addObject(CustomerAdapter.esbFromWeb(customer));
Modified: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/WebCustomer.java
===================================================================
--- labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/WebCustomer.java 2006-08-06 13:07:59 UTC (rev 5508)
+++ labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/java/src/org/jboss/soa/esb/samples/loanbroker/web/WebCustomer.java 2006-08-06 14:53:23 UTC (rev 5509)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
package org.jboss.soa.esb.samples.loanbroker.web;
public class WebCustomer
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/lib)
Deleted: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossall-client.jar
===================================================================
(Binary files differ)
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossall-client.jar (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossall-client.jar)
Deleted: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-common.jar
===================================================================
(Binary files differ)
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-common.jar (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-common.jar)
Deleted: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-listeners.jar
===================================================================
(Binary files differ)
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-listeners.jar (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-listeners.jar)
Deleted: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-processors.jar
===================================================================
(Binary files differ)
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-processors.jar (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-processors.jar)
Deleted: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-services.jar
===================================================================
(Binary files differ)
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-services.jar (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/jbossesb-services.jar)
Deleted: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/junit.jar
===================================================================
(Binary files differ)
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/junit.jar (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/junit.jar)
Deleted: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/log4j.jar
===================================================================
(Binary files differ)
Copied: labs/jbossesb/branches/refactor/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/log4j.jar (from rev 5508, labs/jbossesb/trunk/product/docs/samples/trailblazer/bankloanbrokerdemo/lib/log4j.jar)
More information about the jboss-svn-commits
mailing list