org.mule.samples.loanbroker.esb
Class LoanBroker

java.lang.Object
  extended byorg.mule.samples.loanbroker.esb.LoanBroker

public class LoanBroker
extends Object

LoanBroker is the Service that starts the loan request process. The broker also receives the final quote.

Version:
$Revision: 3798 $
Author:
Ross Mason

Constructor Summary
LoanBroker()
           
 
Method Summary
 LoanQuoteRequest requestLoanQuote(CustomerQuoteRequest request)
          Triggers the Loan Broker process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoanBroker

public LoanBroker()
Method Detail

requestLoanQuote

public LoanQuoteRequest requestLoanQuote(CustomerQuoteRequest request)
                                  throws Exception
Triggers the Loan Broker process. The LoanQuoteRequest returned is sent on the bus. Because the LoanBroker component has a ResponseRouter configured on it it will not return to the callee until the responseRouter and processed. In this case it waits until all loan requests to the banks have been returned and then returns the lowest LoanQuote to the callee.

Parameters:
request -
Returns:
Throws:
Exception


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.