All inline Juan Pablo Lorandi Chief Software Architect Code Foundry Ltd. [EMAIL PROTECTED]
Barberstown, Straffan, Co. Kildare, Ireland. Tel: +353-1-6012050 Fax: +353-1-6012051 Mobile: +353-86-2157900 www.codefoundry.com > -----Original Message----- > From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED]] On Behalf Of Perryn Fowler > Sent: Wednesday, July 31, 2002 3:01 AM > To: [EMAIL PROTECTED] > Subject: packaging and EARS > > > 2 quick questions about ears > > 1) If I have an ear containing two ejbs (in ejb1.jar and ejb2.jar) and > I want to call ejb2 from ejb1, do I need to reference > ejb2.jar in the > manifest classpath of ejb1.jar? No. >Is this vendor specific? No. > > 2) If I have two ears deployed in the same container and ejb1 in ear1 > needs to reference ejb2 in ear2 - then I assume that ear1 > would need > to contain the ejb-client.jar for ejb2 and ejb1 would need > to reference > that in its manifest classpath? That IS dependant on the server implementation. I can tell you how you can handle this with Orion/OC4J. You make the ear2 (the callee component, from what you say) the parent application of ear1(which hosts ejb1, the caller). You don't need to do anything with manifest files then. > In this situation would it > make sense then > to consider deploying both beans directly to the container > and not worry > about ears and ejb-client jars? again is this vendor specific? Very much. Also, bear in mind that the coupling between EJBs that are in different jars is somehow loose. For EJB 2.0, CMR relationships are allowed only between EBs that are in the same .jar file. > > cheers > Perryn > > ============================================================== > ============= > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the body of the message "signoff EJB-INTEREST". > For general help, send email to [EMAIL PROTECTED] and > include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
