I have a question regarding the @EJB Usage
Is it possible to call inject an EJB using @EJB annotation , which is residing on different App Server than where Caller EJB is residing.
For example AppServer server1 has an EJB A
AppServer server2 has an EJB B
I want to inject B into EJB A using @EJB annotation (without using any look up logic) , where will I give the host name information for AppServer 2 ? I dont see any attribute in EJB which I can use to provide that.
is the only workaround to have Jndi.properties in class path of EJB A ?
Is it possible to call inject an EJB using @EJB annotation , which is residing on different App Server than where Caller EJB is residing.
For example AppServer server1 has an EJB A
AppServer server2 has an EJB B
I want to inject B into EJB A using @EJB annotation (without using any look up logic) , where will I give the host name information for AppServer 2 ? I dont see any attribute in EJB which I can use to provide that.
is the only workaround to have Jndi.properties in class path of EJB A ?