|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.util.helper.JNDIHelper
JndiHelper
Single point of access to the application server. This should make it easy to swap out servers, and processes.
Constructor Summary | |
JNDIHelper()
Deprecated. |
Method Summary | |
static void |
bind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object obj)
Deprecated. Bind an object to name in the given context. |
static void |
bind(java.lang.String name,
java.lang.Object obj)
Deprecated. Bind an object into the local naming context. |
static javax.naming.Context |
create(java.util.Hashtable props)
Deprecated. Create a new context based on the properties file. |
static java.util.Hashtable |
createDefault()
Deprecated. Create the default context hashtable for creating the InitialContext. |
protected static javax.naming.Context |
createSubcontext(javax.naming.Context initial,
java.lang.String name)
Deprecated. Create a subcontext for the given name. |
static javax.naming.Context |
getDefaultContext()
Deprecated. The default context. |
static java.lang.Object |
getHome(javax.naming.Context ctx,
java.lang.String homeName)
Deprecated. Get home. |
static java.lang.Object |
getHome(java.lang.String homeName)
Deprecated. Safely retrieve an EJBHome by passing it through the PortableRemoteObject.narrow method, using the EJBMetaData. |
static java.lang.Object |
getService(java.lang.String aLookupName)
Deprecated. See lookup |
static java.lang.Object |
lookup(java.lang.String aLookupName)
Deprecated. Connect to a reference in JNDI referred to by the lookup name. |
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 create(java.util.Hashtable props) throws javax.naming.NamingException
props
- the properties for the JNDI implementation.Context
ToolkitException
- public static javax.naming.Context getDefaultContext()
public static java.util.Hashtable createDefault()
Hashtable
public static java.lang.Object lookup(java.lang.String aLookupName) throws ToolkitException
String
- the lookup name.public static void bind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
name
- the name (can be multi-part).obj
- the object.bind(javax.naming.Context, java.lang.String, java.lang.Object)
,
getDefaultContext()
public static void bind(javax.naming.Context ctx, java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
This supports binding multi-part names by creating the required sub Contexts as needed. If an object is already bound there, this will do a rebind.
ctx
- the naming Context.name
- the name (can be multi-part).obj
- the object.createSubcontext(javax.naming.Context, java.lang.String)
protected static javax.naming.Context createSubcontext(javax.naming.Context initial, java.lang.String name) throws javax.naming.NamingException
This will not create the last portion of the name.
initial
- the initial context to start at.name
- the name (can be multi-part).public static java.lang.Object getService(java.lang.String aLookupName) throws ToolkitException
String
- the lookup name.public static java.lang.Object getHome(java.lang.String homeName) throws ToolkitException
If rmi-iiop is not being used, this will just do a lookup.
homeName
- the JNDI name of the home.public static java.lang.Object getHome(javax.naming.Context ctx, java.lang.String homeName) throws javax.naming.NamingException
ctx
- homeName
- Object
NamingException
-
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |