users@glassfish.java.net

Re: Library dependencies in OSGI applications

From: Sanjeeb Sahoo <Sahoo_at_Sun.COM>
Date: Tue, 01 Jun 2010 15:04:26 +0530

Your WAB need not bundle libraries; it can get its dependencies from
other OSGi bundles. Your WAB needs to have proper OSGi metadata like
Import-Package for logback package and logback bundle needs to export
those packages as well.

Thanks,
Sahoo

glassfish_at_javadesktop.org wrote:
> I am trying to understand library dependencies in OSGI Web Applications. I have been developing some test applications using Netbeans and Maven to do the bundle + Manifest entries.
>
> Say my web application is dependant on Logback - to deploy the application into Glassfish (felix) I need to have Logback already registered as an OSGI bundle. Fair enough.
>
> Do I also need to have the logback jars in web-inf/lib of the war? Does the glassfish container have independant class loading from the felix runtime? So far it would look like this is the case, but I would be happy to be wrong.
>
> If this is the case - is there any recommended way to deal with dependencies in WABs? It would seem unfortunate that the libraries need to exist in both the OSGI container and the Glassfish container..
>
> Thanks!
> Cameron
> [Message sent by forum member 'cameronr']
>
> http://forums.java.net/jive/thread.jspa?messageID=472202
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>