Thanks Claus I have added JMS Transactions (still in Camel 2.4.0) with no effect. I assume I now need to upgrade to Camel 2.5 and add 'throwExceptionOnConnectionFailed' to the route I want to roll back. Can I upgrade to Camel 2.5 while keeping ActiveMQ 5.4.2? If so, how do I do the upgrade?
On Sat, Oct 15, 2011 at 2:58 AM, Claus Ibsen-2 [via Camel] < [email protected]> wrote: > On Fri, Oct 14, 2011 at 5:05 PM, pkleczka <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4904861&i=0>> > wrote: > > > Hello > > > > I am using Camel 2.4.0 with Spring DSL and ActiveMQ 5.4.2. I have a route > > > that takes a message off a queue, grabs the correlation ID in order to > > create a file name, and then FTPs the message. I expected that any > exception > > during this process would "roll back" so that the message would not be > > pulled off the queue. FTP was unavailable due to some firewall changes, > so > > my messages got pulled off the queue but never FTPd. > > > > I understand that if I use Camel 2.5 I can use > > throwExceptionOnConnectionFailed. My questions are: > > 1. Will that prevent the message from being pulled off the queue if FTP > is > > unavailable? If not can I use a transaction tag? > > 3. Is upgrading to Camel 2.5 as easy as replacing the Camel jars in > > ActiveMQ's lib? Any caveats with upgrading this way? > > > > Are you using transacted JMS ? > > If not then the message is pulled off the queue immediately when Camel > receives the message. > You can use transacted JMS to have the message support rollback / commit. > > > > Thanks > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/FTP-producer-and-exception-or-transaction-tp4902912p4902912.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=4904861&i=1> > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://camel.465427.n5.nabble.com/FTP-producer-and-exception-or-transaction-tp4902912p4904861.html > To unsubscribe from FTP producer and exception or transaction, click > here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4902912&code=cGtsZWN6a2FAZ21haWwuY29tfDQ5MDI5MTJ8OTY3NjE0OTg2>. > > -- View this message in context: http://camel.465427.n5.nabble.com/FTP-producer-and-exception-or-transaction-tp4902912p4911178.html Sent from the Camel - Users mailing list archive at Nabble.com.
