|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.obe.client.api.rmi.JNDIHelper
This class can be used for remote access to the JNDI tree.
Field Summary | |
static java.lang.String |
DEFAULT_DATA_SOURCE
|
static java.lang.String |
EJB_DATA_SOURCE
|
Method Summary | |
static javax.sql.DataSource |
getDataSource(java.lang.String name)
This method returns a DataSource object from JNDI. |
static javax.sql.DataSource |
getDataSource(java.lang.String name,
javax.naming.Context ctx)
This method returns a DataSource object from JNDI. |
static javax.naming.InitialContext |
getInitialContext()
This method can be used from a J2EE server. |
static javax.naming.InitialContext |
getInitialContext(java.lang.String url)
This method allows access to different URLs, but with the default username. |
static javax.naming.InitialContext |
getInitialContext(java.lang.String username,
java.lang.Object credentials)
This method is used on the server when a new username is needed for the JNDI context. |
static javax.naming.InitialContext |
getInitialContext(java.lang.String url,
java.lang.String username,
java.lang.Object credentials)
This method allows client code to specify URL and credentials with which to connect. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String EJB_DATA_SOURCE
public static final java.lang.String DEFAULT_DATA_SOURCE
Method Detail |
public static javax.naming.InitialContext getInitialContext() throws javax.naming.NamingException
javax.naming.NamingException
public static javax.naming.InitialContext getInitialContext(java.lang.String url) throws javax.naming.NamingException
url
- Server URL.
javax.naming.NamingException
public static javax.naming.InitialContext getInitialContext(java.lang.String username, java.lang.Object credentials) throws javax.naming.NamingException
username
- credentials
-
javax.naming.NamingException
public static javax.naming.InitialContext getInitialContext(java.lang.String url, java.lang.String username, java.lang.Object credentials) throws javax.naming.NamingException
url
- username
- credentials
-
javax.naming.NamingException
public static javax.sql.DataSource getDataSource(java.lang.String name, javax.naming.Context ctx) throws javax.naming.NamingException
name
- Name of the DataSource objectctx
- JNDI Context.
javax.naming.NamingException
public static javax.sql.DataSource getDataSource(java.lang.String name) throws javax.naming.NamingException
name
- Name of the DataSource object
javax.naming.NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |