This content has been marked as final.
Show 3 replies
-
1. Re: fuse esb cannot start installed OSGi bundle
iocanel Feb 15, 2013 4:03 PM (in response to wl880504) -
2. Re: fuse esb cannot start installed OSGi bundle
wl880504 Feb 15, 2013 4:37 PM (in response to iocanel)I have question about BundleActivator interface. If I want the bundle to do something, like java -jar floodlight.jar, once it is started. Do I need to implement the BundleAcitvator? So it behaves like running from the main() method.
Right now I did not implement BundleActivator. It behaves like a library once started.
-
3. Re: fuse esb cannot start installed OSGi bundle
davsclaus Feb 16, 2013 3:52 AM (in response to wl880504)Yes if you need any business logic to start when the bundle starts you need to either
- use BundleActivator
- a spring xml file
- a blueprint xml file
The latter two is special for Karaf / SMX / FuseESB as they detect these xml files and start the application accordingly.
You can mix and match and have both a bundle activator and xml files as well.