users@glassfish.java.net

Re: deployment type osgi

From: Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 10 Apr 2009 09:43:01 +0530

Yes, it will. The HK2 extender will take care of reading the HK2
metadata from an OSGi bundle irrespective of how it is installed.

Sahoo

Annies wrote:
> I am using "asadmin deploy --type osgi simple-jndi.jar".
>
> But the Felix File Install feature looks cool. If a bundle is
> installed this way, will this addition percolate to the HK2 Module
> Resigtry?
>
>
> Thanks
> Annies
>
>
> ------------------------------------------------------------------------
> *From:* Sahoo <Sahoo_at_sun.com>
> *To:* users_at_glassfish.dev.java.net
> *Sent:* Thursday, April 9, 2009 1:07:18 PM
> *Subject:* Re: deployment type osgi
>
> What exact command are you using to deploy? I can provide you an
> alternative way to deploy OSGi bundles in GFv3 if you use the latest
> nightly build. Just do the following:
>
> copy this attached cfg file to glassfish/modules dir and then
> copy your OSGi bundles to domains/domain1/autodeploy-modules dir.
>
> Thanks,
> Sahoo
>
> Annies wrote:
> >
> > When I deploy a bundle, with --type osgi, it is started and
> immediately restarted, why?
> >
> >
> [#|2009-04-09T09:46:06.609-0700|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=20;_ThreadName=Thread-1;org.glassfish.openesb.simple-jndi
> [318];|Started bundle org.glassfish.openesb.simple-jndi [318]|#]
> >
> >
> [#|2009-04-09T09:46:06.611-0700|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=20;_ThreadName=Thread-1;org.glassfish.openesb.simple-jndi
> [318];|Stopped bundle = org.glassfish.openesb.simple-jndi [318]|#]
> >
> >
> [#|2009-04-09T09:46:06.612-0700|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=20;_ThreadName=Thread-1;org.glassfish.openesb.simple-jndi
> [318];|Started bundle org.glassfish.openesb.simple-jndi [318]|#]
> >
> >
> [#|2009-04-09T09:46:06.629-0700|INFO|glassfish|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=20;_ThreadName=Thread-1;|Deployment
> of simple-jndi done is 82 ms|#]
> >
> >
> > Thanks
> > Annies
> >
> >
> >
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>