|
From: martykells <do-...@jb...> - 2006-06-27 19:25:17
|
Daniel you might want to make a reference to the fact that this example is based on the www.eaipatterns.org sample - just so that people don't get the wrong idea ;-) At a basic level this design would be suitable, both Mule and ServiceMix have applied the same example with this design. If you haven't tried them Mules LoanBorker-ESB verison gives a better feel as it allows you (the customer) to 'input' the requested loan amount and then produces the loan quote - instead of ServiceMix approach which didn't ask but just provided a result. The diagram might need reworking though, as far as I'm aware in the original version the Loan Broker deals with the request and forwards this to the credit agency. The credit agency can then attach the 'customer credit profile' to the 'original loan request' it then gets returned and forwarded to a Lender Service which for an example purpose we could use to create the sample bank(s) and then forward the request (with credit profile). To get an idea see: http://homepages.cs.ncl.ac.uk/martin.kelly/LoanBroker_with_Lender_Service.JPG Its at this point that things can get confusing depending on implementation choice. It's possible to have the banks contact the Loan Broker service without contacting the Lender Service using a ReplyTo header on the request message but I don't know if we can support this yet! The Loan Broker can then use an 'aggregator' (eia pattern) to assemble all the bank quote messages into one (xml) file and base a decision on this for the customer as the best quote available. But again I'm not sure we will support this 'aggregator' pattern. We could of course create a simpler LoanBroker version and expand from there, perhaps even have two versions like Mule. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953798#3953798 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953798 |