-
1. Re: Any doc/example using <configfile> in feature file?
davsclaus Apr 23, 2014 1:46 AM (in response to chanmaha25)Are you provisioning containers using the fabric concept? eg have you defined a profile and on that profile included that feature above? And when you create a container using that profile, and then you have trouble with <configfile> not appearing to work?
-
2. Re: Any doc/example using <configfile> in feature file?
chanmaha25 Apr 23, 2014 11:01 PM (in response to davsclaus)Yes to all. Appreciate your feedback.
-Chandra.
-
3. Re: Any doc/example using <configfile> in feature file?
chanmaha25 Apr 24, 2014 1:15 AM (in response to davsclaus)Here is the snippet of my sample camel route:
<osgix:cm-properties id="bundleProperties" persistent-id="myconfig.properties" />
<ctx:property-placeholder properties-ref="bundleProperties" ignore-unresolvable="true"/>
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="brokerURL" value="${broker.uri}" />
</bean>
Quick Note: Without fabric, I used to place the file in 'etc' folder of the fuse (Fuse Source 7.1) instance.
-
4. Re: Any doc/example using <configfile> in feature file?
davsclaus Apr 24, 2014 6:06 AM (in response to chanmaha25)If fabric manages the containers you should put configuration files into the profile.
-
5. Re: Any doc/example using <configfile> in feature file?
chanmaha25 Apr 24, 2014 3:56 PM (in response to davsclaus)I tried that as well. I created 'myconfig.properties' as part of the profile which has that camel bundle. Deployed the entire profile to the container. however I get an exception that property 'broker.uri' doesnt get resolved. If I replace the 'broker.uri' with a hard coded value say 'discovery:fabric:default', it does creates an 'activemq' instance for that bean defined. My idea is to get those properties file along with the bundle in a feature file and deploy to a container. I am not sure what I am doing wrong.
Any help is greatly appreciated.
Thanks
Chandra.
-
6. Re: Any doc/example using <configfile> in feature file?
chanmaha25 Apr 25, 2014 1:06 PM (in response to chanmaha25)Thanks Claus. Its a silly mistake but good to know. I have 'myconfig.properties' as part of the file and I need to refer in 'osgix:cm-properties' with 'persistent-id' as 'myconfig' instead of 'myconfig.properties'.
I used to have 'myconfig.properties.cfg' file in 'etc' folder in the Fuse 7.1 version and refer in 'persistent-id' as 'myconfig.properties'.
-
7. Re: Any doc/example using <configfile> in feature file?
davsclaus Apr 26, 2014 4:41 AM (in response to chanmaha25)1 of 1 people found this helpfulThis is also discussed in the fabric8 community at