DEPRECATED Use com.bea.p13n.util.JndiHelper
Object
com.beasys.commerce.axiom.util.ToolkitConstants
Single point of access to the application server. This should make it easy to swap out servers, and processes.
Object
JNDIHelper
com.beasys.commerce.axiom.util.ToolkitConstants
Constructor Summary |
Method Summary |
public static void | |
public static void | |
public static | |
public static |
|
protected static |
|
public static |
|
public static | |
public static | |
public static |
|
public static |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JNDIHelper()
Method Detail |
public static void bind(Bind an object into the local naming context.Stringname,Objectobj)
throwsNamingException
NamingException
Related Topics
JNDIHelper.bind(Context, String, Object)
JNDIHelper.getDefaultContext()
public static void bind(Bind an object to name in the given context.Contextctx,Stringname,Objectobj)
throwsNamingException
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.
NamingException
Related Topics
JNDIHelper.createSubcontext(Context, String)
public staticCreate a new context based on the properties file.Contextcreate(Hashtableprops)
throwsNamingException
Context NamingException
public static Hashtable createDefault()
Create the default context hashtable for creating the
InitialContext.
Hashtable protected staticCreate a subcontext for the given name.ContextcreateSubcontext(Contextinitial,Stringname)
throwsNamingException
This will not create the last portion of the name.
NamingException
public static Context getDefaultContext()
The default context. This will look to see if a default context has
been created
public staticSafely retrieve an EJBHome by passing it through the PortableRemoteObject.narrow method, using the EJBMetaData.ObjectgetHome(StringhomeName)
throwsToolkitException
If rmi-iiop is not being used, this will just do a lookup.
ToolkitException
public staticGet home.ObjectgetHome(Contextctx,StringhomeName)
throwsNamingException
Object NamingException
DEPRECATED See lookup
public staticConnect to a reference in JNDI referred to by the lookup name.ObjectgetService(StringaLookupName)
throwsToolkitException
ToolkitException
public staticConnect to a reference in JNDI referred to by the lookup name.Objectlookup(StringaLookupName)
throwsToolkitException
ToolkitException