03 February 2014

Properties files, blueprint and Fuse

Bambitroll @ 16:38
According to the specs for Fuse, if one uses blueprint, it is possible to create several files called *.xml under OSGI-INF/blueprint and they will all be used in the bundle.
This is true but I just found out that the alphabetical order of the file names can have its importance.
Indeed, I have a separate file for my properties (where my cm:property-placeholder is located) and I found out that the properties I wanna use as parameters to bean or outside the camel context are not taken into account if the file is read after the other blueprint files.
So name you properties file aaa_properties and not just properties, especially if your blueprint file is called blueprint.xml :)