| 
 | Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.beasys.commerce.axiom.util.helper.JNDIHelper
JndiHelper
@Deprecated public class JNDIHelper
Single point of access to the application server. This should make it easy to swap out servers, and processes.
| Field Summary | 
|---|
| 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()Deprecated See BEA Commerce product offering | |
| Method Summary | |
|---|---|
| static void | bind(Context ctx,
     String name,
     Object obj)Deprecated See BEA Commerce product offering | 
| static void | bind(String name,
     Object obj)Deprecated See BEA Commerce product offering | 
| static Context | create(Hashtable props)Deprecated See BEA Commerce product offering | 
| static Hashtable | createDefault()Deprecated See BEA Commerce product offering | 
| protected static Context | createSubcontext(Context initial,
                 String name)Deprecated See BEA Commerce product offering | 
| static Context | getDefaultContext()Deprecated See BEA Commerce product offering | 
| static Object | getHome(Context ctx,
        String homeName)Deprecated See BEA Commerce product offering | 
| static Object | getHome(String homeName)Deprecated See BEA Commerce product offering | 
| static Object | getService(String aLookupName)Deprecated See lookup | 
| static Object | lookup(String aLookupName)Deprecated See BEA Commerce product offering | 
| 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 Context create(Hashtable props)
                      throws NamingException
props - the properties for the JNDI implementation.
Context
ToolkitExceptionNamingExceptionpublic static Context getDefaultContext()
public static Hashtable createDefault()
Hashtable
public static Object lookup(String aLookupName)
                     throws ToolkitException
String - the lookup name.
ToolkitException - holder for any exception
public static void bind(String name,
                        Object obj)
                 throws NamingException
name - the name (can be multi-part).obj - the object.
NamingException - thrown on a naming error.bind(javax.naming.Context, java.lang.String, java.lang.Object), 
getDefaultContext()
public static void bind(Context ctx,
                        String name,
                        Object obj)
                 throws 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.
NamingException - thrown on a naming error.createSubcontext(javax.naming.Context, java.lang.String)
protected static Context createSubcontext(Context initial,
                                          String name)
                                   throws 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).
NamingException - thrown is the name cannot be created.
public static Object getService(String aLookupName)
                         throws ToolkitException
String - the lookup name.
ToolkitException - holder for any exception
public static Object getHome(String homeName)
                      throws ToolkitException
If rmi-iiop is not being used, this will just do a lookup.
homeName - the JNDI name of the home.
ToolkitException - thrown on a lookup error.
public static Object getHome(Context ctx,
                             String homeName)
                      throws NamingException
ctx - homeName - 
Object
NamingExceptionNamingException| 
 | Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||