Package org.jboss.tutorial.jndibinding.bean

Examples of org.jboss.tutorial.jndibinding.bean.CustomerManager


      System.out.println("1 + 1 = " + calculator.add(1, 1));
      System.out.println("1 - 1 = " + calculator.subtract(1, 1));
     
      // now let's use the customer bean to ensure that the entity manager is bound
      // to jndi
      CustomerManager customerManager = (CustomerManager) ctx.lookup("CustomerManager");
      long id = customerManager.createCustomer("Jaikiran");
      System.out.println("Created customer with id = " + id);
      Customer customer = customerManager.getCustomer(id);
      System.out.println("Customer's name is " + customer.getName());
   }
View Full Code Here

TOP

Related Classes of org.jboss.tutorial.jndibinding.bean.CustomerManager

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.