Specific implementation code depends on which EJB container and JNDI implementation you are using.
You cannot do this; JNDI provider and EJB container should be located on the same machine.
You should add appropriate value to the java.naming.provider.url environment setting.
JNDI should be installed and running on the EJB machine.
It is virtually impossible to obtain EJB home for multiple hosts
|