This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Can someone tell me how to inject a remote EJB reference? For example, I have a Web app deployed on machine A, and an EJB deployed on machine B. How do I refer to the EJB in my web app? Lookup is not an option in my case.
Certified for SCJP, SCJD, SCDJWS,SCEA and IBM 141- XML& Related Technologies
You can do it two ways other ways besides look-up: 1. Use jndi.properties to point to the remote server. 2. You can use app-server specific global JNDI naming to connect to a remote EJB via DI/@EJB/XML DD.