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

Examples of org.jboss.remoting.samples.transporter.proxy.CustomerProcessor.processCustomer()


      Customer customer = createCustomer();

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

      System.out.println("Customer to be processed: " + customer);
      ICustomer processedCustomer = customerProcessor.processCustomer(customer);
      // processedCustomer returned is actually a proxy to the Customer instnace
      // that lives on the server.  So when print it out below, will actually
      // be calling back to the server to get the string (vi toString() call).
      // Notice the output of 'Customer.toString() being called.' on the server side.
      System.out.println("Customer is now: " + processedCustomer);
View Full Code Here


/* 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);
/*    */
/* 50 */     System.out.println("Customer is now: " + processedCustomer);
/*    */
/* 52 */     TransporterClient.destroyTransporterClient(customerProcessor);
/*    */   }
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.