We have two jboss servers (say A and B) running. Is it possible to have ejbs deployed on server A to bind to the naming service on server B? The goal is that clients on server A should not have to do a remote look up to call interfaces on this ejb. I initially tried using ExternalContext and defining an MBean but realized I have to change the way I do the look up to actually call any interface on the ejb. Is there anyway I can specify either -
1. On server A - to configure ejbs to also bind to the naming service on B while getting deployed.
or
2. On server B - to configure jndi so that the jndi name indirectly points to jnp://serverB:1099/jndi name
Any pointers to any documentation will be really appreciated. Thanks.