This should be an easy one because I think I'm simply missing the point.
I have an application.xml along the lines of:
.....
<module>
<ejb>MyEjb</ejb>
</module>
<module>
<web>
Web application One definition here
</web>
</module>
<module>
<web>
Web application Two definition here
</web>
</module>
......
I want both web applications to share the EJB instances, but they don't.
Orion seems to deploy the EJB.jar twice, once for each application. This
means when I find entity bean instances with the same primbary key in
both applications they aren't refereing to the same instance in memory,
i.e. changes in memory don't show up.
Is this the correct behaviour? And if it is, how do I get the
applications to share the bean?
I searched all over the web and all the books I have and none show
examples of two applications in a '.ear' file. If I use the Orion
earassembler.jar application it produces the same application.xml file I
made by hand, for whatever that's worth.
I realize this is probably more of a general J2EE question (at least I
hope it is!), but you folks on this list seem really sharp, so I thought
you could help.
Thanks in advance.