-
1. Re: Issue in resolving placeholders from properties fils from dependent jars
ffang Apr 25, 2011 8:08 PM (in response to rmahanti)Hi,
You need use osgi style property placeholder and FUSE ESB leverage OSGi configAdmin service to load the properties, so that you need put the properties file in $ESB/etc folder.
You can take a look at camel-osgi example shipped with kit which demonstrate how to use property placeholder in OSGi container.
Freeman
-
2. Re: Issue in resolving placeholders from properties fils from dependent jars
rmahanti Apr 25, 2011 8:12 PM (in response to ffang)Hi Freeman,
Thanks fo your reply.But in my scenario the dependent jar have property files not the actual bundle iam deployng.need i have to copy the dependent jar file's property files als in servicemix/etc folder?
thanks,
Ravi.
-
3. Re: Issue in resolving placeholders from properties fils from dependent jars
ffang Apr 25, 2011 8:18 PM (in response to rmahanti)Hi,
Yeah, you need copy it to etc folder, that's where configadmin service look up properties.
Freeman
-
4. Re: Issue in resolving placeholders from properties fils from dependent jars
rmahanti Apr 25, 2011 8:28 PM (in response to ffang)Hi,
But the dependent jar has spring context file that is importing resouce file lik this,
Will the place holder will resolved and beans will be instantiated that are defined in jar files too.
Thaks,
Ravi.
-
5. Re: Issue in resolving placeholders from properties fils from dependent jars
ffang Apr 25, 2011 8:41 PM (in response to rmahanti)Hi,
I assume you also install the dependent jar as a bundle(let's say name bundleB), and you need use OSGi style properties placeholder in bundleB and put the .properties in etc folder.
Freeman
-
6. Re: Issue in resolving placeholders from properties fils from dependent jars
rmahanti Apr 25, 2011 8:51 PM (in response to ffang)No Actaully we are using Tomcat to host webapplication and we generated some jar files in support of that (not bundle) which contains sme sprng context files an properties files .Now we want to reuse the same jar file in servicemix as well(with same spring context files we already defined to support tomcat).
Does servicemix support this ?
Please suggest me some solution for this.
Thanks,
Ravi.
-
7. Re: Issue in resolving placeholders from properties fils from dependent jars
ffang Apr 25, 2011 9:05 PM (in response to rmahanti)Hi,
No, I don't think so, as in OSGi world, pretty much everything should be installed as bundle and you need adjust your structure per my suggestion, like using OSGi properties placeholder and put the .properties files in etc folder.
Freeman