Are you using the unit of work feature?

On 13 August 2014 13:36, Matt Wendling <mwendl...@ipass.com> wrote:

> Hi Claus,
>
> Thanks for the reply.
>
> I need to rollback the transaction otherwise my DB statements will commit
> and a JMS event will be sent.
>
> What is the point of the transaction if it's not rolled back on error?
>
> Is there no simple way to have the request / reply return immediately upon
> an exception / transaction rollback? It's not really acceptable for my case
> to have a timeout be the response.
>
> thanks,
>
> Matt
>
>
> On Tue, Aug 12, 2014 at 10:40 PM, Claus Ibsen <claus.ib...@gmail.com>
> wrote:
>
> > Hi
> >
> > Then you need to not rollback the tx, and handle the exception and
> > return the response as the stacktrace.
> >
> >
> > On Tue, Aug 12, 2014 at 10:37 PM, Matt Wendling <mwendl...@ipass.com>
> > wrote:
> > > Hi,
> > >
> > > I'm using Camel with ActiveMQ and InOut request/reply routes.   When I
> > set
> > > transferException=true i get the exception returned to the caller.
> >  However
> > > if the route is transacted then the exception is NOT returned and I end
> > up
> > > with the 20000 ms timeout on the caller.
> > >
> > > Is there a way to get this exception and return it back to the caller
> in
> > a
> > > transacted route?
> > >
> > > thanks,
> > >
> > > Matt
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > Red Hat, Inc.
> > Email: cib...@redhat.com
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
> > hawtio: http://hawt.io/
> > fabric8: http://fabric8.io/
> >
>



-- 
Matt Sicker <boa...@gmail.com>

Reply via email to