|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.app.JNDILookupServiceBean
A basic class to look for a object inside the JNDI provider and return to the users
In order to use to this lookup bean simply define environment properties for your particular application server.
The following defines a secure WebLogic JNDI Provider:
java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory java.naming.provider.url = t3://localhost:7001 java.naming.security.principal = username java.naming.security.credentials = password java.naming.security.protocol = ssl
The last three properties are optional, if the JNDI provider is not secured by a login user and obviously SSL.
Context| Field Summary | |
protected java.util.Properties |
environment
The properties optionally defined for JNDI initial context |
protected java.lang.String |
lookupName
The name bean to retrieve using JNDI |
| Constructor Summary | |
JNDILookupServiceBean()
Default constructor |
|
| Method Summary | |
java.util.Properties |
getEnvironment()
Gets the environment |
java.lang.String |
getLookupName()
Gets the lookupName |
java.lang.Object |
getTarget()
Retrieve the target object using the JNDI name |
void |
setEnvironment(java.util.Properties environment)
Sets the environment |
void |
setLookupName(java.lang.String lookupName)
Sets the lookupName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String lookupName
protected java.util.Properties environment
| Constructor Detail |
public JNDILookupServiceBean()
| Method Detail |
public java.util.Properties getEnvironment()
public void setEnvironment(java.util.Properties environment)
environment - the new value for environmentpublic java.lang.String getLookupName()
public void setLookupName(java.lang.String lookupName)
lookupName - the new value for lookupName
public java.lang.Object getTarget()
throws java.lang.Exception
null
java.lang.Exception - if operation of Japan. fails
the - target object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||