bean io - Camel beanio mapping file outside the war -


i'm using camel beanio component marshal , unmarshal data inside file.

<beanio id="mybeanio" mapping="classpath:beanio-mapping-file-config.xml"             streamname="mystreamname" /> 

it working fine in tomcat not working in jboss. need keep beanio mapping xml outside war file. mentioning actual path of mapping xml file mapping attribute, working fine. need beanio mapping xml path environment variable or properties file. 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 not getting replaced actual value. camel version used 2.12.1

how solve problem?

this not possible today. cannot refer env in mapping field in beanio.

that require enh have logged: https://issues.apache.org/jira/browse/camel-9540


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -