You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Pallavi G S <ra...@gmail.com> on 2016/01/27 11:36:12 UTC
Camel beanio mapping file outside the war
0
down vote
favorite
1
I'm using camel beanio component to marshal and unmarshal the data inside
the file.
<beanio id="myBeanio" mapping="classpath:beanio-mapping-file-config.xml"
streamName="myStreamName" />
It is working fine in tomcat but not working in jboss. So I need to keep the
beanio mapping xml outside the war file. By mentioning actual path of
mapping xml file for mapping attribute, it is working fine. But I need to
get the beanio mapping xml path from environment variable or from properties
file. So with below changes,
<beanio id="myBeanio"
mapping="file:${env:env_var_name}/beanio-mapping-file-config.xml"
streamName="myStreamName" />
or
<beanio id="myBeanio"
mapping="file:{{prop_name}}/beanio-mapping-file-config.xml"
streamName="myStreamName" />
I'm getting org.apache.camel.RuntimeCamelException:
java.io.FileNotFoundException
The environment variable/property is not getting replaced with the actual
value. Camel version used is 2.12.1
How do I solve this problem?
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-beanio-mapping-file-outside-the-war-tp5776783.html
Sent from the Camel Development mailing list archive at Nabble.com.