6 Replies Latest reply on Jun 3, 2011 12:07 AM by jmandawg

    How to read file relative to ServiceMix Home

    jmandawg

      Hi all,

       

      Is there anyway i can read a file relative to the ServiceMix_Home folder.  For example, we have these special descriptor files (NOT properties files) that our osgi bundle reads, and i want to put them in the FuseESB_Home/etc folder (or is that the wrong place for them?)

       

      In the code i would like to do a:

       

      new FileInputStream("/etc/desc/myDescriptorfile.xml")

       

      Is there anyway i can get a file reference relative to the ServiceMix_Home directory?

       

      I really don't want to have to have a properties file that points to an absolute path.

       

      Thanks,

       

      -J