Hi Juanjo,

I think you hit a problem that pass resource files between bundles at runtime, let's say the scenario is that you have bunde1 and bundle2, now you need pass a resource file from bundle2 to bundle1, but the resource file in bundle2 isn't available for bundle1, at the moment when you write bundle1, you don't know the package path of the resource from other bundles might pass in, so you can't add certain import-package for bundle1, or bundle1 is third party published bundle so you can't touch or change it.

The solution for this scenario could be that create a fragment bundle, which contain the resource files, and attach this fragment bundle to the bundle(play the role as host bundle, all resource in fragment bundle is available for host bundle) you wanna pass resource in(for your case it should be cxf-bundle)

Freeman
On 2010-10-10, at 下午5:31, Juan José Vázquez Delgado wrote:

Juanjo


--
Freeman Fang

------------------------
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Open Source SOA: http://fusesource.com
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org

Reply via email to