Thanks Claus, I got it working. But have one more question. Page 304 of the
Camel in Action book has a note about using the Direct component for
multiple routes because it says the messages must "be processed in the same
thread context". I am not sure I understand this or how I would alter the
two routes below so that a direct component would tie them together.
<!-- Validate that we pass Odyssey XSD or send to "rejected" queue
-->
<route id="EFileBatchRequestSubmit">
<from
uri="properties:{{queue.efilebatch.request.validatedxsdbusrules}}" />
<!-- ... some operations here ... -->
<to uri="properties:{{queue.efilebatch.request.submitted}}" />
</route>
<!-- Send to Odyssey ftp -->
<route id="EFileBatchRequestFTP">
<from uri="properties:{{queue.efilebatch.request.submitted}}" />
<transacted ref="PROPAGATION_REQUIRED" />
<bean ref="formatFTPFileName" method="formatName" />
<to
uri="properties:{{ftp.efilebatch.request.submitted}}?fileName=${header.JMSCorrelationID}.xml"
/>
<to uri="properties:{{log.efilebatch.request.submitted}}" />
<wireTap
uri="properties:{{queue.efilebatch.request.submitted.tap}}" />
</route>
*Would I do something like the following:*
<!-- Validate that we pass Odyssey XSD or send to "rejected" queue
-->
<route id="EFileBatchRequestSubmit">
<from
uri="properties:{{queue.efilebatch.request.validatedxsdbusrules}}" />
<!-- ... some operations here ... -->
<to uri="properties:{{queue.efilebatch.request.submitted}}" />
*<to uri="direct:tie" />*
</route>
<!-- Send to Odyssey ftp -->
<route id="EFileBatchRequestFTP">
*<to uri="direct:tie" /> <!-- This replaces the: from
uri="properties:{{queue.efilebatch.request.submitted}}" -->*
<transacted ref="PROPAGATION_REQUIRED" />
<bean ref="formatFTPFileName" method="formatName" />
<to
uri="properties:{{ftp.efilebatch.request.submitted}}?fileName=${header.JMSCorrelationID}.xml"
/>
<to uri="properties:{{log.efilebatch.request.submitted}}" />
<wireTap
uri="properties:{{queue.efilebatch.request.submitted.tap}}" />
</route>
--
View this message in context:
http://camel.465427.n5.nabble.com/FTP-producer-and-exception-or-transaction-tp4902912p4926428.html
Sent from the Camel - Users mailing list archive at Nabble.com.