Title: SV: Sharing EJB's

I've never seen Orion deploy two copies of the ejb.jar just because you have two web-applications.
Check the ATM sample application, it holds one HTML and one WAP web-application that both uses the same ejb.

If I understand you correctly,
manipulating an entity from one web-app does not affect the same entity when viewed from the other web-app?
I can't reproduce it.

WR

> -----Ursprungligt meddelande-----
> Från: Michael Gantz [mailto:[EMAIL PROTECTED]]
> Skickat: den 29 mars 2001 18:52
> Till: Orion-Interest
> Ämne: Sharing EJB's
>
>
> 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.
>

Reply via email to