Package org.jboss.remoting.samples.transporter.multiple

Examples of org.jboss.remoting.samples.transporter.multiple.Customer


{
   private String locatorURI = "socket://localhost:5400";

   public void makeClientCall() throws Exception
   {
      Customer customer = createCustomer();

      CustomerProcessor customerProcessor = (CustomerProcessor) TransporterClient.createTransporterClient(locatorURI, CustomerProcessor.class);

      System.out.println("Customer to be processed: " + customer);
      Customer processedCustomer = customerProcessor.processCustomer(customer);
      System.out.println("Customer is now: " + processedCustomer);

      AccountProcessor accountProcessor = (AccountProcessor) TransporterClient.createTransporterClient(locatorURI, AccountProcessor.class);

      System.out.println("Asking for a new account to be created for customer.");
View Full Code Here


   }

   private Customer createCustomer()
   {
      Customer cust = new Customer();
      cust.setFirstName("Bob");
      cust.setLastName("Smith");
      Address addr = new Address();
      addr.setStreet("101 Oak Street");
      addr.setCity("Atlanta");
      addr.setState("GA");
      addr.setZip(30249);
      cust.setAddr(addr);

      return cust;
   }
View Full Code Here

/*    */ {
/* 16 */   private String locatorURI = "socket://localhost:5400";
/*    */
/*    */   public void makeClientCall() throws Exception
/*    */   {
/* 20 */     Customer customer = createCustomer();
/*    */
/* 22 */     CustomerProcessor customerProcessor = (CustomerProcessor)TransporterClient.createTransporterClient(this.locatorURI, CustomerProcessor.class);
/*    */
/* 24 */     System.out.println("Customer to be processed: " + customer);
/* 25 */     Customer processedCustomer = customerProcessor.processCustomer(customer);
/* 26 */     System.out.println("Customer is now: " + processedCustomer);
/*    */
/* 28 */     AccountProcessor accountProcessor = (AccountProcessor)TransporterClient.createTransporterClient(this.locatorURI, AccountProcessor.class);
/*    */
/* 30 */     System.out.println("Asking for a new account to be created for customer.");
View Full Code Here

/* 35 */     TransporterClient.destroyTransporterClient(accountProcessor);
/*    */   }
/*    */
/*    */   private Customer createCustomer()
/*    */   {
/* 41 */     Customer cust = new Customer();
/* 42 */     cust.setFirstName("Bob");
/* 43 */     cust.setLastName("Smith");
/* 44 */     Address addr = new Address();
/* 45 */     addr.setStreet("101 Oak Street");
/* 46 */     addr.setCity("Atlanta");
/* 47 */     addr.setState("GA");
/* 48 */     addr.setZip(30249);
/* 49 */     cust.setAddr(addr);
/*    */
/* 51 */     return cust;
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.samples.transporter.multiple.Customer

Copyright © 2018 www.massapicom. 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.