Skip Navigation Links | |
Exit Print View | |
Designing with Oracle Java CAPS Web Server Adapters Java CAPS Documentation |
Designing with Web Server Adapters
Specifying JNDI Names with the Sun Java System Application Server Adapter
The Connectivity Map and Environment properties are used to specify JNDI names. There are two methods you can use to specify a JNDI name:
Specify the server name and port number in the Environment properties, and specify a JNDI name in the Connectivity Map, ejbJndiName property. The adapter concatenates the server name and port number with the JNDI name and provides the qualified JNDI name.
For example, if the specified server name is MyServer, the specified port number is 1111, and the JNDI name is ejb/MyStorageBin, the adapter uses these property to construct the qualified JNDI name:
corbaname:iiop:1.2@MyServer:1111#ejb/MyStorageBin
Specify a qualified JNDI name in the Connectivity Map property, ejbJndiName. This name supersedes any values specified in the Environment properties. For example:
corbaname:iiop:1.2@MyServer:1111#ejb/MyStorageBin