users@glassfish.java.net

Re: Shared Persistence Unit

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 11 Aug 2009 09:11:57 -0700

--libraries does not apply to lib jars inside the ear.

Regards,
-marina

Martin Gainty wrote:
> |YourEar.ear/|
>
> |ejb.jar|
> |foo.war|
> |lib/my-pu.jar (this jar is shared by all who access jbi-shared-library)
> |
>
>
> also
> to avoid classloader issues undeploy app and redeploy with --libraries
> to use the updated version of jar library.
>
> hth
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.
> Diese Nachricht dient lediglich dem Austausch von Informationen und
> entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten
> Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt
> uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>
>
> ------------------------------------------------------------------------
> From: mgainty_at_hotmail.com
> To: users_at_glassfish.dev.java.net
> Subject: RE: Shared Persistence Unit
> Date: Mon, 10 Aug 2009 18:21:51 -0400
>
>
> once you've installed your library as a jbi-shared-library
> <!-- identification information about this shared library-->
> <shared-library>
> <identification>
> <name>sun-wsdl-library</name>
> <description>This library provides WSDL 1.1/2.0 parsing
> support and message-wrapping utilities used to send WSDL 1.1-defined
> messages over the Normalized Message Router (NMR).</description>
> </identification>
> <shared-library-class-path>
> <path-element>wsdl11-wrapper.jar</path-element>
> <path-element>wsdl2.jar</path-element>
> <path-element>wsdl4j.jar</path-element>
> </shared-library-class-path>
> </shared-library>
> </jbi>
>
> then these components (your components~notice the enclosing jar and the
> component workspace are identified) will have access to shared-library
> (in this case sun-wsdl-library)
>
> <jbi xmlns="http://java.sun.com/xml/ns/jbi/registry">
> <components>
> <component default-install="true" timestamp="1234880373937"
> file-name="httpbc.jar" name="sun-http-binding"/>
> <component default-install="true" timestamp="1234880374062"
> file-name="appserv-jbise.jar" name="sun-javaee-engine"/>
> </components>
> <shared-libraries>
> <shared-library default-install="true" timestamp="1234880374140"
> file-name="wsdlsl.jar" name="sun-wsdl-library"/>
> </shared-libraries>
> <servers>
> <server name-ref="server">
> <component-ref
> workspace="F:\GlassFish\glassfish\domains\domain1/jbi/components/sun-http-binding/install_root/workspace"
> install-root="F:\GlassFish\glassfish\domains\domain1/jbi/components/sun-http-binding/install_root"
> state="Shutdown" name-ref="sun-http-binding"/>
> <component-ref
> workspace="F:\GlassFish\glassfish\domains\domain1/jbi/components/sun-javaee-engine/install_root/workspace"
> install-root="F:\GlassFish\glassfish\domains\domain1/jbi/components/sun-javaee-engine/install_root"
> state="Shutdown" name-ref="sun-javaee-engine"/>
> <shared-library-ref
> install-root="F:\GlassFish\glassfish\domains\domain1/jbi/shared-libraries/sun-wsdl-library/install_root"
> name-ref="sun-wsdl-library"/>
> </server>
> </servers>
> </jbi>
>
> Viel Gluck
> Martin
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.
> Diese Nachricht dient lediglich dem Austausch von Informationen und
> entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten
> Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt
> uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>
>
> > Date: Mon, 10 Aug 2009 12:42:33 -0700
> > From: glassfish_at_javadesktop.org
> > To: users_at_glassfish.dev.java.net
> > Subject: Re: RE: Shared Persistence Unit
> >
> > I don't think this answers my question... I guess I was too vague. I
> need to know how to configure an ear such that all the ejb-jars inside
> it can see the same persistence unit/context. Shared libraries sounds
> like it is more for sharing an api among different ears, mbeans, etc.
> > [Message sent by forum member 'culli' (culli)]
> >
> > http://forums.java.net/jive/thread.jspa?messageID=359786
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
>
> ------------------------------------------------------------------------
> Get your vacation photos on your phone! Click here.
> <http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM>
> ------------------------------------------------------------------------
> Get your vacation photos on your phone! Click here.
> <http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM>