|
WebLogic Process Integrator Version 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.wlpi.server.common.JNDIHelper
This class defines static methods that can be used to get a Context object to the WLS JNDI tree.
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 if the object is in WLS and does not need to specify a username |
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 code to specify the username and URL to connect with. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
- 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
String
- Name of the DataSource objectContext
- Context to JNDI. If null, this will attempt to grab a
default Contextjavax.naming.NamingException
- public static javax.sql.DataSource getDataSource(java.lang.String name) throws javax.naming.NamingException
String
- Name of the DataSource objectjavax.naming.NamingException
-
|
WebLogic Process Integrator Version 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |