0 Replies Latest reply on Nov 6, 2014 11:08 AM by gen.antony

    External XML file refernce in OSGI bundle

    gen.antony

      How should I configure a file externally from the class path so that my camel-archtype-spring-dm bundle and also a dependency jar can access the file during runtime.

      Say camel-bundle.jar is my bundle and it has a dependency jar dependency.jar. One of the initialization class from the dependency.jar  has to access a file from class path.(getClass().getResource(“/externalfile.xml”)) .

      The URL always returns a null even if I add the path of the externalfile.xml to the class path of the server.

      Kindly suggest a way to add the xml path to the class path in the red hat fuse esb server.