Re: JTA Transactions not rolling back in RouteBuilder

2009-05-12 Thread triswork
Hi Claus, I put some instructions into index.jsp... Not really to most accessible place now that I think about it :) I will try to do as you ask, but it will probably take me a couple of days to do. Regards, Tristan Claus Ibsen-2 wrote: > > On Mon, May 11, 2009 at 3:27 PM, triswork

Re: JTA Transactions not rolling back in RouteBuilder

2009-05-11 Thread triswork
Hi Claus, I have created a JIRA ticket for this issue and attached a MVN project that demonstrates the issue. The JIR reference is CAMEL-1601. Regards, Tristan Claus Ibsen-2 wrote: > > On Mon, May 11, 2009 at 7:46 AM, triswork wrote: >> >> I have made some progress with

Re: JTA Transactions not rolling back in RouteBuilder

2009-05-11 Thread triswork
Hi Claus, I have double-checked and the spring XML config seems to be correct. It just seems that two different transaction contexts are being used when I use annotations. I don't know if it makes a huge difference, but I set the JTATransactionManager as a property of my component (from the Spr

Re: JTA Transactions not rolling back in RouteBuilder

2009-05-10 Thread triswork
Hi Claus, The annotations seems to work OK. If I change the propagation to REQUIRED or REQUIRES_NEW, the transactions work fine (but only for the JDBC portion of the transaction). I will try to put a sample project together this morning and create the ticket. Regards, Tristan -- View this mes

Re: JTA Transactions not rolling back in RouteBuilder

2009-05-10 Thread triswork
I have made some progress with this issue, but I am more confused than ever... If I annotate my poll() method with @Transactional(propagation = Propagation.MANDATORY) I get: IllegalTransactionStateException: No existing transaction found for transaction marked with propagation 'mandatory' If, how

JTA Transactions not rolling back in RouteBuilder

2009-05-08 Thread triswork
Hi I am hoping someone can tell me what I am doing wrong here... I cannot get transaction rollbacks to work in my Camel routes and I have tried everything I can think of. I have created a new component that consumes messages from a database table. The messages are deleted, but a status flag is u

Re: Transaction Exception

2009-05-08 Thread triswork
nks for reporting. First time I see this issue. >> >> I will commit a fix to Camel 1.6.1 to avoid this issue. Running tests >> now. >> >> >> On Fri, May 8, 2009 at 8:48 AM, triswork wrote: >>> >>> Hi Claus, >>>

Re: Transaction Exception

2009-05-07 Thread triswork
Hi Claus, I am using 1.6.0 The full stacktrace is listed below: java.lang.ExceptionInInitializerError at org.apache.camel.spring.spi.SpringTransactionPolicy.wrap(SpringTransactionPolicy.java:54) at org.apache.camel.model.PolicyRef.createProcessor(PolicyRef.java:86) at org

Transaction Exception

2009-05-07 Thread triswork
Hi I am trying to add a transaction policy to one of my camel routes and I keep getting the following exception: java.lang.ExceptionInInitializerError at org.apache.camel.spring.spi.SpringTransactionPolicy.wrap(SpringTransactionPolicy.java:54) ... Caused by: org.apache.camel.RuntimeCamelExceptio

Batch Message Creation (With Transactions)

2009-05-05 Thread triswork
Hi I have run into a problem that I will *really* appreciate some suggestions on: I have a single message that arrives in a ActiveMQ queue. The message contains an ID that is used by a bean to perform a database lookup. The lookup can contain anything up to around one million records. Each of th

Newbie Question #2: Transactional Client

2009-02-20 Thread triswork
I think I am starting to get the hang of Camel now. I have, however, run into one more problem that I would like some advice on. I have already read through the "Transactional Client" documentation page before anyone asks. More on that later :) My scenario is very simple. I have the following (s

Newbie Question - Content Filtering

2009-02-19 Thread triswork
I am new to Camel and am trying to migrate some code I wrote using the javax.jms classes across to Camel. I have a specific problem and I am not too sure if my approach is the optimal solution. I would really appreciate some feedback from the veterans on this list. Basically, my application perfo