Re: Disable automatic bundle restart?

2011-05-27 Thread Jean-Baptiste Onofré
Hi Thomas,

In the etc/org.apache.felix.fileinstall-deploy.cfg, you can add someproperties 
to fileinstall such as:

felix.fileinstall.dir to add a directory where you can put your bundle
felix.fileinstall.filter to exclude your bundle
felix.fileinstall.bundles.new.start to define if you want to auto install 
discovered bundles

Anyway, I advice you to take a look on Karaf features. Using a features 
gathering your bundles, you will be able to install it by hand, or to start 
automatically at startup (defining your feature in the featuresBoot of 
etc/org.apache.karaf.features.cfg file).

Regards
JB


On Fri 27/05/11 08:56 , thomasrynne  wrote::

Yes, I am using the deploy folder. Thanks, that explains it.
I googled for a fileinstall option to disable this feature but didn't find
anything.
At least I undersand it now.

thanks.

Btw, I am impressed by karaf it has made it much easier to learn osgi.
I only found it through a comment on stackoverflow when looking for an osgi
shell with autocomplete.

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Disable-automatic-bundle-restart-tp2986102p2991946.html
Sent from the Karaf - User mailing list archive at Nabble.com.





Re: Disable automatic bundle restart?

2011-05-26 Thread thomasrynne
I don't use an activator, the manifest has a Bundle-Module entry which a
peaberry bundle uses to do the registration.

The bundles aren't part of a feature.

thanks,
Thomas

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Disable-automatic-bundle-restart-tp2986102p2987793.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Disable automatic bundle restart?

2011-05-25 Thread thomasrynne
Using peaberry, I have bundle A which exports a service and bundle B which
uses the service.

Using the vanilla felix installation I can restart bundle A and bundle B
then uses the new instance.
Under karaf, when I restart bundle A bundle B gets restarted too.

Is this a karaf feature? Is there a way to switch off this feature? I am new
to osgi so maybe there is a different way to do this.

Essentially I am trying to find the best way to redeploy new code without
disrupting the dependencies (with or without peaberry). Maybe services
should never keep a reference to another service and lookup the service on
every use?

Any pointers would be appreciated.

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Disable-automatic-bundle-restart-tp2986102p2986102.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Disable automatic bundle restart?

2011-05-25 Thread Jean-Baptiste Onofré

Hi,

do you use an Activator in your bundle or a blueprint descriptor ?
is your bundle part of a features ?

Thanks
Regards
JB

On 05/25/2011 10:54 PM, thomasrynne wrote:

Using peaberry, I have bundle A which exports a service and bundle B which
uses the service.

Using the vanilla felix installation I can restart bundle A and bundle B
then uses the new instance.
Under karaf, when I restart bundle A bundle B gets restarted too.

Is this a karaf feature? Is there a way to switch off this feature? I am new
to osgi so maybe there is a different way to do this.

Essentially I am trying to find the best way to redeploy new code without
disrupting the dependencies (with or without peaberry). Maybe services
should never keep a reference to another service and lookup the service on
every use?

Any pointers would be appreciated.

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Disable-automatic-bundle-restart-tp2986102p2986102.html
Sent from the Karaf - User mailing list archive at Nabble.com.