|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.bea.p13n.util.JndiHelper
| Constructor Summary | |
JndiHelper()
|
|
| Method Summary | |
static javax.naming.Context |
getContext()
Returns a reference to an InitialContext object. |
static java.lang.Object |
lookupNarrow(java.lang.String lookupName,
java.lang.Class lookupClass)
Convenience method for getting a remote JNDI reference to an object. |
| 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 javax.naming.Context getContext()
throws javax.naming.NamingException
public static java.lang.Object lookupNarrow(java.lang.String lookupName,
java.lang.Class lookupClass)
throws javax.naming.NamingException,
java.lang.ClassCastException
The code this executes looks like:
PortableRemoteObject.narrow(
JndiHelper.getContext().lookup(lookupName),
lookupClass);
lookupName - The JNDI name of the object to locatelookupClass - The desired class typePortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||