Uploaded image for project: 'Forge: Jansi'
  1. Forge: Jansi
  2. JANSI-22

How can we access a properties file from deploy folder inside a bundle

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      I have one properties file in /opt/iona/apache-servicemix-4.2.0-fuse-01-00/deploy folder and
      I am trying to access that file inside my bundle as follows in the camel-context.xml file

      <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
      <property name="location" value="classpath:my-client.properties" />
      </bean>

      When I tried to deploy this bundle in OSGI container, deployment is failing as it is unable to find this my-client.properties file.

      How can we access a properties file from deploy folder inside a bundle

        Gliffy Diagrams

          Activity

          Hide
          socallag Sean O'Callaghan added a comment -

          Hi,

          Similarly to JANSI-19, please do not raise issues with respect to FUSE products under this project, it is not monitored by FUSE support.
          Details on how to raise a support request are available here: http://fusesource.com/wiki/display/CUSTINFO/Jira+Instructions

          With respect to your query, the standard mechanism would be to have the file contained in the bundle, this is the OSGi architecture.
          However the etc directory <FUSE_Install>/etc is on the containers classpath by default so files added to this directory should be picked up.

          I am now going to close this issue.

          If you have any further queries please open a support request as per the instructions above.

          Regards,

          Seán O'Callaghan

          Show
          socallag Sean O'Callaghan added a comment - Hi, Similarly to JANSI-19 , please do not raise issues with respect to FUSE products under this project, it is not monitored by FUSE support. Details on how to raise a support request are available here: http://fusesource.com/wiki/display/CUSTINFO/Jira+Instructions With respect to your query, the standard mechanism would be to have the file contained in the bundle, this is the OSGi architecture. However the etc directory <FUSE_Install>/etc is on the containers classpath by default so files added to this directory should be picked up. I am now going to close this issue. If you have any further queries please open a support request as per the instructions above. Regards, Seán O'Callaghan

            People

            • Assignee:
              socallag Sean O'Callaghan
              Reporter:
              usha11 usha kanteti
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development