-
1. Re: Multiple Web Apps in EAR
jaikiran Dec 23, 2009 1:36 AM (in response to c_eric_ray)1 of 1 people found this helpfulYes (although don't repeat the my-ejb.jar mapping in there).
-
2. Re: Multiple Web Apps in EAR
c_eric_ray Dec 23, 2009 10:17 AM (in response to jaikiran)Thanks for the response - another quick question.
So if I do the following... and remove the second definition of the my-ejb.jar module
<?xml version="1.0" encoding="UTF-8"?>
<application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
<module>
<web>
<web-uri>webapp1.war</web-uri>
<context-root>/w1</context-root>
</web>
</module>
<module>
<ejb>my-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>webapp2.war</web-uri>
<context-root>/w2</context-root>
</web>
</module>
</application>Then the webapp2.war still has access to the EJBs defined in the my-ejb.jar module?
-
3. Re: Multiple Web Apps in EAR
jaikiran Dec 23, 2009 10:19 AM (in response to c_eric_ray)c_eric_ray wrote:
Then the webapp2.war still has access to the EJBs defined in the my-ejb.jar module?
Yes, it will.