BankLoanBrokerDemo - JMS replies not being processed +
bobsmith Nov 7, 2006 6:59 AMHello
I am running the bankloanbrokerdemo. I am using all the correct versions mentioned in other posts.
I also made the changes to bankloanbrokerdemo\build.xml to change references to ${org.jboss.soa.esb.samples.loanbroker.esb_home}/build/dist/lib to ${org.jboss.soa.esb.samples.loanbroker.esb_home}/lib as I saw this mentioned in another post.
I have also amended conf/LoanBrokerConfig.xml
Changed:
loanbrokerRequestDir="/temp/bankInput"
loanbrokerEmailTemplatePath="/cygwin/home/kstam/dev1.6/loanbrokerdemo/template"
to:
loanbrokerEmailTemplatePath="/dev/esb/docs/samples/trailblazer/bankloanbrokerdemo/template?
loanbrokerRequestDir="/dev/esb/docs/samples/trailblazer/bankloanbrokerdemo/pdtemp?
To mimic what I changed the above from, I did not include a drive letter in either path.
I then started JBoss, the listener, the File bank, and the JMS bank, and entered a loan request on the JSP.
The JMS bank reported that it had received a request on queue C. It is configured (via bank.properties) to send replies on queue/D. What is supposed to pick that reply up? I assume it's the "listener"? The listener did not show any activity. Here is the output from the JMS bank console window:
[java] Listening to Queue 'queue/C'. [java] Responding to Queue 'queue/D'. [java] 10:39:02,598 INFO [ManagerJMS] Looking up queue=queue/C [java] 10:39:03,520 INFO [ManagerJMS] Looking up connection factory [java] 10:39:03,629 INFO [ManagerJMS] Creating connection [java] 10:39:03,739 INFO [ManagerJMS] Creating session [java] 10:44:04,286 INFO [ManagerJMS] Got message: SpyTextMessage { [java] Header { [java] jmsDestination : QUEUE.C [java] jmsDeliveryMode : 2 [java] jmsExpiration : 0 [java] jmsPriority : 4 [java] jmsMessageID : ID:52-11628962439421 [java] jmsTimeStamp : 1162896243942 [java] jmsCorrelationID: null [java] jmsReplyTo : null [java] jmsType : null [java] jmsRedelivered : false [java] jmsProperties : {JMSXDeliveryCount=1} [java] jmsPropReadWrite: false [java] msgReadOnly : true [java] producerClientId: ID:52 [java] } [java] Body { [java] text :<org.jboss.soa.esb.samples.loanbroker.banks.BankQuoteRequest> [java] <ssn>1234567890</ssn> [java] <creditScore>0</creditScore> [java] <historyLength>0</historyLength> [java] <loanAmount>1000</loanAmount> [java] <loanTerm>12</loanTerm> [java] <customerUID>10501301</customerUID> [java] </org.jboss.soa.esb.samples.loanbroker.banks.BankQuoteRequest> [java] } [java] } [java] 10:44:05,004 INFO [Bank] Bank 'JMSBasedBank' received a request for SSN=1234567890 for $1000 over 12 months. [java] 10:44:05,051 INFO [Bank] Bank 'JMSBasedBank offers SSN=1234567890 BankQuoteReply=[interestRate=8.60, quoteId=JMSBasedBank-0, errorCode=0, customerU ID=10501301] [java] 10:44:05,098 INFO [ManagerJMS] Looking up connection factory [java] 10:44:05,129 INFO [ManagerJMS] Creating connection [java] 10:44:05,145 INFO [ManagerJMS] Creating session
There is no more output after this point.
The File bank's console showed no activity at all. After submitting the request on the jsp I noticed that a file appeared in the loanbrokerRequestDir (which is set in LoanBrokerConfig.xml) folder. I decided to see what would happen if I manually dropped the file into the file.monitored.directory - the File bank kicked into life, the file was moved to <file.monitored.directory>/processed. The listener also kicked into life, reporting an error sending e-mail. The error stated that org.jboss.soa.esb.mail.smtp.from was invalid. This is set to a string "FromMe" as I didn't think that that would need to be a valid e-mail account, rather just who the e-mail would appear to be from, whith the actual account the e-mail was from being defined by the value of org.jboss.soa.esb.mail.smtp.user.
The listener also tells me that the value of org.jboss.soa.esb.mail.smtp.auth is blank, but the conf/LoanBrokerConfig.xml file has, under EmailProperties,
org.jboss.soa.esb.mail.smtp.auth="true".
So, in summary, I have 4 questions:
(1) Why did I manually need to move the file for the File Bank to work? Is there something I have configured incorrectly?
(2) Does org.jboss.soa.esb.mail.smtp.from need to be set to a valid e-mail account?
(3) Why is the Listener reporting that org.jboss.soa.esb.mail.smtp.auth is not set when it is?
(4) Why doesn't the listener process the reply from the JMS bank? Or why doesn't the JMS bank send the reply?
Thanks,
Bob