Package org.jboss.remoting.samples.transporter.proxy

Examples of org.jboss.remoting.samples.transporter.proxy.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);
      ICustomer processedCustomer = customerProcessor.processCustomer(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

/*    */ {
/* 36 */   private String locatorURI = "socket://localhost:5400";
/*    */
/*    */   public void makeClientCall() throws Exception
/*    */   {
/* 40 */     Customer customer = createCustomer();
/*    */
/* 42 */     CustomerProcessor customerProcessor = (CustomerProcessor)TransporterClient.createTransporterClient(this.locatorURI, CustomerProcessor.class);
/*    */
/* 44 */     System.out.println("Customer to be processed: " + customer);
/* 45 */     ICustomer processedCustomer = customerProcessor.processCustomer(customer);
View Full Code Here

/* 52 */     TransporterClient.destroyTransporterClient(customerProcessor);
/*    */   }
/*    */
/*    */   private Customer createCustomer()
/*    */   {
/* 59 */     Customer cust = new Customer();
/* 60 */     cust.setFirstName("Bob");
/* 61 */     cust.setLastName("Smith");
/* 62 */     Address addr = new Address();
/* 63 */     addr.setStreet("101 Oak Street");
/* 64 */     addr.setCity("Atlanta");
/* 65 */     addr.setState("GA");
/* 66 */     addr.setZip(30249);
/* 67 */     cust.setAddr(addr);
/*    */
/* 69 */     return cust;
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.samples.transporter.proxy.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.