Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: JANSI-22
Type: Support Request Support Request
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Sean O'Callaghan
Reporter: usha kanteti
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forge: Jansi

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

Created: 02/Jun/10 02:16 PM   Updated: 03/Jun/10 08:50 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
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



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Sean O'Callaghan made changes - 03/Jun/10 08:26 AM
Field Original Value New Value
Assignee Sean O'Callaghan [ seanoc ]
Sean O'Callaghan added a comment - 03/Jun/10 08:50 AM
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


Sean O'Callaghan made changes - 03/Jun/10 08:50 AM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]