How to load a resource file in an OSGi environment
Issue
I am working with a camel-infinispan-osgi sample for using infinispan in libary mode inside karaf, but the infinispan.xml file won't load when deployed in karaf.
I have infinispan.xml in the root of my resources directory, and it makes its way into the bundle jar file (in the root). My unit tests that load that file work outside of fuse, but when I deploy the bundle to karaf I get the "file not found" errors.
How do you get blueprint to load a resource file in OSGi?
Environment
- JBoss Fuse 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
