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.

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"

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.

You should refer to the documentation for the implementation that you are using for the exact specifics.

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact