I posted a similar question yesterday..got a reply also.
But is it possible to use <ejb-ref> and invoke method of a EJB on a diffrent machine, if the Bean assembler is not specifying any <ejb-link> in the <ejb-ref>.
In the spec, it is mentioned that it is the resposibilty if the deployer to map the EJB in the <ejb-ref> with the actual JNDI name, possibly by using the LinkRef functionlity of JNDI.
When i go to the JNDI API, LinkRef is a sub class of javax.naming.Refrence. Now javax.naming.Refrence is there for providing link to a external JNDI.
So if it is possible for the deployer to use this LinkRef and link a EJB on one machine to a EJB on other machine, then Why the standard deplytool of j2ee RE server is not having this facility??
posted 12 years ago
I posted a similar question yesterday..got a reply also. For people who would like to follow, here is the reply
As for your LinkRef question, javax.naming.Reference does not permit to link an object to an external JNDI but it allows one to link to objects which themselves are not directly bound to the naming/directory system. This means outside of JNDI (on the same server) and not to an external JNDI (on a different server), which is different. You get the nuance?