How do I use JNDI to locate the home interface of an EJB running on a different host? My client's InitialContext doesn't seem to know where the server is.
Created Aug 1, 2000
Robert Castaneda This depends on which EJB container / JNDI implementation that you are using.
For example, in WebLogic, you set the javax.naming.Context.PROVIDER_URL property to be the host and port, for example "t3://hostname:7001"
You should refer to the documentation for the implementation that you are using for the exact specifics.
Using the Inprise Application Server, it will do this automatically if you are within the same subnet using the Smart Agent, or you can pass a command-line parameter into the virtual machine.