com.sun.j2ee.blueprints.petstore.util
Class EJBUtil

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.petstore.util.EJBUtil

public final class EJBUtil
extends java.lang.Object

This is a utility class for obtaining EJB references.


Constructor Summary
EJBUtil()
           
 
Method Summary
static Mailer createMailerEJB()
           
static CatalogHome getCatalogHome()
           
static CustomerHome getCustomerHome()
           
static InventoryHome getInventoryHome()
           
static OrderHome getOrderHome()
           
static ProfileMgrHome getProfileMgrHome()
           
static ShoppingClientControllerHome getSCCHome()
           
static ShoppingCartHome getShoppingCartHome()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBUtil

public EJBUtil()
Method Detail

getCustomerHome

public static CustomerHome getCustomerHome()
                                    throws javax.naming.NamingException

getProfileMgrHome

public static ProfileMgrHome getProfileMgrHome()
                                        throws javax.naming.NamingException

getSCCHome

public static ShoppingClientControllerHome getSCCHome()
                                               throws javax.naming.NamingException

getInventoryHome

public static InventoryHome getInventoryHome()
                                      throws javax.naming.NamingException

getOrderHome

public static OrderHome getOrderHome()
                              throws javax.naming.NamingException

getCatalogHome

public static CatalogHome getCatalogHome()
                                  throws javax.naming.NamingException

getShoppingCartHome

public static ShoppingCartHome getShoppingCartHome()
                                            throws javax.naming.NamingException

createMailerEJB

public static Mailer createMailerEJB()
                              throws javax.naming.NamingException,
                                     javax.ejb.CreateException,
                                     java.rmi.RemoteException


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.