|
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
Single point of access to the application server. This should make it easy to swap out servers, and processes.
| Fields inherited from interface com.beasys.commerce.axiom.util.ToolkitConstants |
DEFAULT_ID_CACHE,
DEFAULT_ID_PROCEDURE,
DEFAULT_JDBC_POOL_NAME,
DEFAULT_JTS_POOL_NAME,
DEFAULT_LOGGING_LEVEL,
DEFAULT_WEBLOGIC_HOST,
DEFAULT_WEBLOGIC_PORT,
ID_CACHE,
ID_PROCEDURE,
JDBC_POOL_NAME,
JTS_POOL_NAME,
LOG_DEBUG,
LOG_ERROR,
LOG_FATAL,
LOG_INFO,
LOG_SECURITY,
LOG_WARNING,
LOGGING_LEVEL,
WEBLOGIC_HOST,
WEBLOGIC_PORT |
| Constructor Summary | |
JNDIHelper()
|
|
| Method Summary | |
static void |
bind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object obj)
Bind an object to name in the given context. |
static void |
bind(java.lang.String name,
java.lang.Object obj)
Bind an object into the local naming context. |
static javax.naming.Context |
create(java.util.Hashtable props)
Create a new context based on the properties file. |
static java.util.Hashtable |
createDefault()
Create the default context hashtable for creating the InitialContext. |
static javax.naming.Context |
getDefaultContext()
The default context. |
static java.lang.Object |
getHome(javax.naming.Context ctx,
java.lang.String homeName)
Get home. |
static java.lang.Object |
getHome(java.lang.String homeName)
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)
Connect to a reference in JNDI referred to by the lookup name. |
| Methods inherited from class java.lang.Object |
equals,
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.ContextToolkitException - 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
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 - ObjectNamingException -
|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||