users@glassfish.java.net

Re: deployment type osgi

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Thu, 09 Apr 2009 14:37:09 -0700

On Apr 9, 2009, at 1:07 PM, Sahoo wrote:

> 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.
yeah but it is not a managed operation, meaning you cannot "undeploy"
them by removing them without again having to go to the directory
structure.

jerome

>
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net