Hi all,

What is the current best practice for referencing JNDI inside your XML Camel
Route?   

 @Bean(name = "fileOutputDirectory")
 @Scope(BeanDefinition.SCOPE_SINGLETON)
 public String fileOutputDirectory() {
        return simpleJndiBeanFactory().getBean("fileOutputDirectory",
String.class);
 }

 
<setHeader headerName="CamelFileName">         
<simple>myFile_${date:now:yyyy.MM.dd_hh.mm.ss}.xml</simple>
</setHeader>
<to uri="file://fileOutputDirectory"/>  //How to reference this bean in XML
Route?




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-XML-Route-with-JNDI-references-tp5780707.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to