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.
I'm deploying an J2EE application as an ear file with one war and multiple EJB jars. If some of the EJBs in a.jar will act as clients to EJBs in b.jar, is there a preferred way to deploy it? Several options I've considered:
1. Duplicate the home and remote interfaces and any other classes I need from b.jar into a.jar.
2. Create a b-client.jar with the necessary classes and refer to it in the Classpath element of a.jar's manifest.
3. Just put b.jar in a.jar's manifest. (I'm not sure this will work.)
In any one of these approaches "the" right way? Or is there a better way I haven't considered?