-
1. Re: start level bundle independant
ffang Jun 14, 2012 7:26 PM (in response to mathieuj)Hi,
We never put bundle start level in FUSE ESB startup script, as bundle start level is bind to each bundle, you can put your customer bundles in a features.xml and specify bundle startlevel there.
Freeman
-
2. Re: start level bundle independant
mathieuj Jun 15, 2012 3:13 AM (in response to ffang)hi,
Infact when I put my startlevel in the startup script, if one bundle is missing in the repetory deploy, fuse doesn't start.
I don't understand your explanation and how my fuse esb consider your file features.xml.
But i would like one file by bundle, like that i have nothing to do after the build of my bundle in eclipse.
Mathieu
-
3. Re: start level bundle independant
ffang Jun 15, 2012 4:52 AM (in response to mathieuj)Hi,
Not sure how you put startlevel in the startup script, do you mean you edit the etc/startup.properties? If so, you really shouldn't do it, as bundles there is only some very fundamental bundles to launch FUSE ESB, your customer bundle shouldn't be there.
The features.xml is the FUSE ESB/karaf provisioning mechanism[1], you can take a look at
$FUSE_ESB/system/org/apache/camel/karaf/apache-camel/2.8.0-fuse-05-03/apache-camel-2.8.0-fuse-05-03-features.xml as an example(I assume you use FUSE ESB 4.4.1-fuse-06-03), where you can specify startlevel for bundles.
http://karaf.apache.org/manual/latest-2.2.x/users-guide/provisioning.html
Freeman
-
4. Re: start level bundle independant
mathieuj Jun 15, 2012 5:43 AM (in response to ffang)yes, i modified the startup.properties!
infact modify the startup.properties and the features.xml looks like the same way.
In my problem, i would like don't modify any files in the repertory FUSE ESB, and like that my bundles and my fuse are independants
-
5. Re: start level bundle independant
ffang Jun 15, 2012 8:47 AM (in response to mathieuj)Hi,
First of all you shouldn't modify startup.properties.
No, it's not the same way.
Actually you can maintain yourown features.xml, so that it's independent with FUSE ESB.
You can drop your features.xml in any FUSE_ESB/deploy folder so that all bundles in it get installed/started.
Freeman
-
6. Re: start level bundle independant
mathieuj Jun 15, 2012 8:55 AM (in response to ffang)yes for sure, i don't modify startup.properties;
Ok, i see, but i don"t know how i can do for my fuse esb read each features.
if you have a quick example
-
7. Re: start level bundle independant
ffang Jun 15, 2012 9:07 AM (in response to mathieuj)Hi,
I'm not sure what you mean by "how i can do for my fuse esb read each features."
Generally you needn't worry about it, FUSE ESB will load features and install bundles automatically for you.
Freeman
-
8. Re: start level bundle independant
mathieuj Jun 15, 2012 9:18 AM (in response to ffang)because my features will be in my jar.
maybe i cans send you a little bundle example, and you can show me to do that?
Mathieu
Edited by: mathieuj on Jun 15, 2012 1:17 PM