|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.theopenstack.rtpdemo.util.ServiceLocator
A utility class abstracting JNDI lookups of EJB objects. Provides caching service as well.
Method Summary | |
static ServiceLocator |
getInstance()
An access point to ServiceLocator. |
java.lang.Object |
lookup(java.lang.String jndiName,
java.lang.Class homeClass)
Lookup an object in the JNDI tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ServiceLocator getInstance() throws ServiceLocatorException
ServiceLocator
ServiceLocatorException
- If any problem occured during the lookuppublic java.lang.Object lookup(java.lang.String jndiName, java.lang.Class homeClass) throws ServiceLocatorException
Object
to
facilitate the universal use of EJBHome
and
EJBLocalHome
. The client's responsibility is to cast the reference
to the correct type.
ServiceLocatorException
- If any error occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |