I was wondering if a module I create for the JBI container can do two different things depending on a scenario. For example, say I'm using the FTPPoller class. For this module, I configure what FTP Server to poll, the path to poll, etc. The files that get polled will be sent to the NMR which will be routed to another module that will write the files into a certain directory.
Now, say I get an IOException during the FTPPoller process. Besides logging the error, can I create a custom XML message from this FTPPoller module and reroute this message to another JBI module, call it EmailModule. This Email module will take the XML message--which contains to/from/subject/message information--and then create/send emails to the appropriate recipients? Hence I will have one EmailModule that will take any message from the NMR, parse the *known* XML message, and then send the message out... Is this a good way of handling email alerts or am I overdoing this, e.g. should not participate in the ESB? Thanks in advance. -los -- View this message in context: http://www.nabble.com/Multiprocessing-JBI-module--tf2426127.html#a6765001 Sent from the ServiceMix - User mailing list archive at Nabble.com.
