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
Post a Comment