users@glassfish.java.net

Re: deployment type osgi

From: Sahoo <Sahoo_at_sun.com>
Date: Fri, 10 Apr 2009 01:37:18 +0530

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
>
>
>


#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#

# This configuration file is used by org.apache.felix.fileinstall bundle.
# Author: Sahoo_at_Sun.COM

# Directory being watched by fileinstall.
felix.fileinstall.dir=${com.sun.aas.instanceRoot}/autodeploy-modules/
# Time period fileinstaller thread in ms.
felix.fileinstall.poll=5000
# debug level
felix.fileinstall.debug=1
# should new bundles be started or installed only? true => start, false => only install
felix.fileinstall.bundles.new.start=true