Re: Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-05 Thread smilicevics
Hi, is there any solutions to my problem? Sasa smilicevics wrote: > > Hi > > I did that too: > > > >uri="oracle:queue:java:comp/resource/WeborderJmsResourceProvider/Queues/JMSEXAMPLE?maxMessagesPerTask=-1" > /> > >

Re: Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-04 Thread smilicevics
Hi I did that too: Claus Ibsen-2 wrote: > > Hi > > You need to set transacted=true on the JMS endpoint to let

Re: Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-04 Thread smilicevics
Hi, I already did that. Separately, JMS and BD works. Sasa willem.jiang wrote: > > Another suggestion, you can try to make the JMS and DB work separately > before you get them work together. > > Willem > > Claus Ibsen wrote: >> Hi >> >> Which versions of the various products are you using

Re: Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-04 Thread Claus Ibsen
Hi You need to set transacted=true on the JMS endpoint to let it be transacted. Try this first as you use annotations for the rest so that might do the trick. If not you need to add in the route so Camel knows its a transacted route. See more here: http://camel.apache.org/transactional-client.h

Re: Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-04 Thread smilicevics
Hi, I am using apache camel 1.6.1, oracle as 10.1.3.3, spring 2.5., aspectj 1.5.4 Here is the stacktrace: 1817082 2009-08-03 17:20:33,623 DEBUG org.apache.camel.component.jms.EndpointMessageListener.onMessage(63) - Endpoint[oracle:queue:java:comp/resource/WeborderJmsResourceProvider/Queues/JMSE

Re: Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-04 Thread Willem Jiang
Another suggestion, you can try to make the JMS and DB work separately before you get them work together. Willem Claus Ibsen wrote: Hi Which versions of the various products are you using? And when you get an error shown the real stacktrace / error message helps. And try use google on this

Re: Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-03 Thread Claus Ibsen
Hi Which versions of the various products are you using? And when you get an error shown the real stacktrace / error message helps. And try use google on this exception / stacktrace to find others with same problem. And try get a sample working with Oracle + Spring + JDBC + XA to ensure that co

Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-03 Thread smilicevics
Hi, I am trying to write code which will consume a message and do the insert in database. I want to use global transactions and two-phase-commit. I got always the same error: cannot commit in global transaction. Can somebody tell me what am i doing wrong here: this is my spring xml: http://w