see below
Nagarajan, Shanmuga Sundaram schrieb:
Hi,
Couple of questions regarding osgi
1. Can an active bundle stop automatically (goes from active to
Resolved/Installed state) without any user intervention ? We tested
out some failure scenarios by manually uninstalling bundles. But we
would like to understand if a bundle can go down by itself due to any
errors ? Based on this we need to decide our HA capabilities.
We tried throwing exceptions/errors >from bundles but never were able
to get the bundle to go down. So any help in simulating the conditions
when a bundle can go down will be much appreciated.
well, in the activator you get a reference to your BundleContext which
provides an api to do almost anything with your bundle. It has a method
called stopBundle() or getBundle().stop() which should suffice your needs.
Did you tried that?
2. What are advantages of using services compared to package-import.
We are not particularly interested in using service oriented
architecture so we were wondering what else we would miss out on by
sticking to package import.
Those are different levels, the one is the service-layer which you may
need or not need, don't worry.
The other is the Module Layer which is basically the whole import/export
package, resolving bundles thing.
Toni
Thanks & Regards,
Shanmuga Sundaram Nagarajan
------------------------------------------------------------------------
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev
--
Toni Menzel - Software Developer
my blog: http://tonitcom.blogspot.com/
contact: [EMAIL PROTECTED]
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev