|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.yajul.jndi.JndiHelper
public class JndiHelper
Helper functions for JNDI.
User: Joshua Davis
Date: Sep 9, 2007
Time: 10:17:15 AM
| Constructor Summary | |
|---|---|
JndiHelper()
|
|
| Method Summary | ||
|---|---|---|
static
|
lookup(javax.naming.InitialContext context,
java.lang.Class<T> clazz,
java.lang.String name)
Encapsulates the standard JNDI lookup calls for EJBs, etc. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JndiHelper()
| Method Detail |
|---|
public static <T> T lookup(javax.naming.InitialContext context,
java.lang.Class<T> clazz,
java.lang.String name)
context - The initial context. Null to use the default new InitialContext()clazz - the expected type of the object in JNDI. For an EJB, this will be the local
interface class.name - The JNDI name for the object, e.g. XxxDao/local or, XxxDao/Remote
LookupException - if the lookup fails for any reason
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||