|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.sape.carbon.services.ejb.InitialContextUtility
This utility class aids in the construction of well-formed
InitialContext objects, as required by the EJB service
home factories for JNDI lookups.
Copyright 2002 Sapient
| Constructor Summary | |
private |
InitialContextUtility()
Private constructor for utility class to block instantiation. |
| Method Summary | |
static Context |
getInitialContext(String initialContextFactory,
String providerUrl,
String principal,
String credentials)
Utility method that creates the InitialContext onto the JNDI tree based upon the configured properties. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private InitialContextUtility()
| Method Detail |
public static Context getInitialContext(String initialContextFactory,
String providerUrl,
String principal,
String credentials)
throws NamingException
Utility method that creates the InitialContext onto the JNDI tree based upon the configured properties.
initialContextFactory - String representation of the class name to
be used as the InitialContextFactory; this
parameter is analagous to
Context.INITIAL_CONTEXT_FACTORYproviderUrl - The JNDI provider URL as a Stringl this parameter is
analagous to Context.PROVIDER_URLprincipal - The security principal as a String; this parameter is
analagous to Context.SECURITY_PRINCIPALcredentials - The credentials associated with the security principal
as a String; this parameter is analagous to the
Context.SECURITY_CREDENTIALS
NamingException - indicates an error building the Context based
on the given environment.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||