Hi Camel users

Let's say I have this generic file to JMS route I would like to put in a 
library.

from(directory?options...)
   .routeId("basicFileToJmsRoute")
   .log(LoggingLevel.INFO, "[FILEREADER], file: ${in.header.CamelFileName}")
   .to(queueEndpointUri);


Then I would like to build multiple modules who use the route where each module 
has its own configuration (directory, queue etc). 

But some of them have also additional requirements, for example split large XML 
files: 

from(directory?options...)
   .routeId("basicFileToJmsRoute")
   .log(LoggingLevel.INFO, "[FILEREADER], file: ${in.header.CamelFileName}")
=>   .split().tokenizeXML(SPLITTER_ELEMENT_NAME).streaming()
   .to(queueEndpointUri);


Is there a best practice approach to extend a basic route like this in another 
module?

Thanks
Stephan

Reply via email to