Re: Handle different route types in a single method

2013-04-26 Thread Claus Ibsen
Hi Yeah you can use the same processor to handle messages from different routes. There is a method on exchange that tells you the original endpoint which created the Exchange. getFromEndpoint getFromRouteId You can also just check if there is attachments, then its from mail etc. Where as if not,

Handle different route types in a single method

2013-04-25 Thread Mangiameli, Josiah
Hey All, I am trying to write processor class that can process files retrieved from different routes. Originally It was designed to handle email routes but I also want to handle sftp, ftp or local file routes. However I am finding that the ftp files are not delivered as a Message like an email is