Examples of LoanRequest


Examples of org.springframework.integration.samples.loanbroker.domain.LoanRequest

  }

  public void runDemo() {
    ApplicationContext context =  new ClassPathXmlApplicationContext("META-INF/spring/integration/bootstrap-config/stubbed-loan-broker.xml");
    LoanBrokerGateway broker = context.getBean("loanBrokerGateway", LoanBrokerGateway.class);
    LoanRequest loanRequest = new LoanRequest();
    loanRequest.setCustomer(new Customer());
    LoanQuote loan = broker.getBestLoanQuote(loanRequest);
    logger.info("********* Best Quote *********\n" + loan);
    System.out.println("==============================");
    List<LoanQuote> loanQuotes = broker.getAllLoanQuotes(loanRequest);
    logger.info("********* All Quotes *********");
 
View Full Code Here

Examples of org.springframework.integration.samples.loanbroker.domain.LoanRequest

  public static void main(String[] args) {
    ConfigurableApplicationContext context =
        new ClassPathXmlApplicationContext("META-INF/spring/integration/bootstrap-config/stubbed-loan-broker-multicast.xml");
    LoanBrokerGateway broker = context.getBean("loanBrokerGateway", LoanBrokerGateway.class);
    LoanRequest loanRequest = new LoanRequest();
    loanRequest.setCustomer(new Customer());
    LoanQuote loan = broker.getBestLoanQuote(loanRequest);
    logger.info("\n********* Best Quote: " + loan);
    List<LoanQuote> loanQuotes = broker.getAllLoanQuotes(loanRequest);
    logger.info("\n********* All Quotes: ");
    for (LoanQuote loanQuote : loanQuotes) {
View Full Code Here

Examples of org.switchyard.quickstarts.demos.library.types.LoanRequest

        SuggestionResponse suggestionResponse = unwrapResponse(SuggestionResponse.class, soapResponse);
        return suggestionResponse.getSuggestion();
    }

    private Loan attemptLoan(String isbn) throws Exception {
        LoanRequest loanRequest = new LoanRequest();
        loanRequest.setIsbn(isbn);
        String soapRequest = wrapRequest(_LoanRequest_QNAME, LoanRequest.class, loanRequest, null);
        String soapResponse = _httpMixIn.postString("http://localhost:" + _port + "/loan/LoanService", soapRequest);
        LoanResponse loanResponse = unwrapResponse(LoanResponse.class, soapResponse);
        return loanResponse.getLoan();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.