This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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 ?