Hi guys ,
I am facing very strange problem in implementing JMS in weblogic 6.0 .
I am using one bean managed statelessbean to start the transaction and commiting tx using the same.
I am using JMS to pass some messages to other EJB .JMS Q is not a part of transaction.
when i try to do "start and then commit tx " with bean managed statlessEJB it is not giving exception if i do not send any message to Q .
But when i reapeat the same tx and pass some messages on Q it is giving follwoing exception
"weblogic.transaction.RollbackException: Could not prepare resource
weblogic.jdbc.jts.Connection JDBC driver does not support XA, hence cannot be
a participant in two-phase commit. To force this participation, set the
enableTwoPhaseCommit property on the corresponding JDBCTxDataSourceproperty,
to true. Pool = oraclePool - with nested exception:[javax.transaction.xa
.XAException: JDBC driver does not support XA, hence cannot be a participant
in two-phase commit. To force this participation, set the
enableTwoPhaseCommit property on the corresponding JDBCTxDataSourceproperty,
to true. Pool = oracleP] Exception while committing Could not prepare
resource 'weblogic.jdbc.jts.Connection JDBC driver does not support XA,
hence cannot be a participant in two-phase commit. To force this
participation, set the enableTwoPhaseCommit property on the corresponding
JDBCTxDataSourceproperty, to true. Pool = oraclePool"
So when my stateless bean try to commit , at that point above exceotion comes.
By default JMS is a part of Transaction ? But i have unticked 'user transaction enabled 'in JMS transaction
proterty .
Document also says same stuff which i did . but it is not working .I am using a SP 2 ..
Regards ,
@bhijit
-
JMS problem in weblogic 6.0 sp2 (3 messages)
- Posted by: Abhijit Gaikwad
- Posted on: July 31 2001 02:17 EDT
Threaded Messages (3)
- JMS problem in weblogic 6.0 sp2 by sanjib ghosh on July 31 2001 16:04 EDT
- JMS problem in weblogic 6.0 sp2 by Abhijit Gaikwad on August 01 2001 01:41 EDT
- JMS problem in weblogic 6.0 sp2 by Tony Brookes on August 09 2001 23:18 EDT
-
JMS problem in weblogic 6.0 sp2[ Go to top ]
- Posted by: sanjib ghosh
- Posted on: July 31 2001 16:04 EDT
- in response to Abhijit Gaikwad
Did you set the transaction mode as false when you create the JMS session ? It is the first parameter in create(Topic/Queue)Session.
thanks...sanjib -
JMS problem in weblogic 6.0 sp2[ Go to top ]
- Posted by: Abhijit Gaikwad
- Posted on: August 01 2001 01:41 EDT
- in response to sanjib ghosh
Yah !
I have set false parameter in Q creation .Also followed steps specified in JMS Documentation provided by WL6.0 SP2
Abhijit
-
JMS problem in weblogic 6.0 sp2[ Go to top ]
- Posted by: Tony Brookes
- Posted on: August 09 2001 23:18 EDT
- in response to Abhijit Gaikwad
It's the JDBC connection that is complaining. Make sure you are using XAConnection as the class providing the resource, rather than Connection.
Chz
Tony