|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
IBM MQSeries 5.2, VAJ 3.5.3, JMS and EJB1.0(I think), JDK1.2 |
« View previous topic :: View next topic » |
Author |
Message
|
krossouw |
Posted: Wed May 01, 2002 6:44 am Post subject: |
|
|
Newbie
Joined: 30 Apr 2002 Posts: 3
|
I am writing to a MQ queue(bind mode) from inside an EJB on VAJ. When I write to the queue without reading from DB2 on the mainframe the commit and rollback logic works fine using the XA classes from JNDI as defined in JMSAdmin. As soon as I read records from DB2 and then write these records to the queue then the container does not want to do the commit to the queue and causes a rollback.
Can you put some light on this with the amount of info given.
Thanks
Kobus Rossouw |
|
Back to top |
|
 |
kolban |
Posted: Wed May 01, 2002 6:54 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
Are there any errors logged by the AppServer? |
|
Back to top |
|
 |
krossouw |
Posted: Wed May 01, 2002 7:00 am Post subject: |
|
|
Newbie
Joined: 30 Apr 2002 Posts: 3
|
This is the reply that I get:
javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 0 No; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK:
minor code: 0 completed: No
org.omg.CORBA.TRANSACTION_ROLLEDBACK:
minor code: 0 completed: No
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
org.omg.CORBA.SystemException(java.lang.String, int, org.omg.CORBA.CompletionStatus)
org.omg.CORBA.TRANSACTION_ROLLEDBACK(java.lang.String, int, org.omg.CORBA.CompletionStatus)
org.omg.CORBA.TRANSACTION_ROLLEDBACK(java.lang.String)
java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object [])
org.omg.CORBA.SystemException com.ibm.CORBA.iiop.ReplyMessage.getSystemException()
org.omg.CORBA.SystemException com.ibm.rmi.iiop.ClientResponseImpl.getSystemException()
org.omg.CORBA.portable.InputStream com.ibm.CORBA.iiop.ClientDelegate.invoke(org.omg.CORBA.Object, org.omg.CORBA.portable.OutputStream)
org.omg.CORBA.portable.InputStream org.omg.CORBA.portable.ObjectImpl._invoke(org.omg.CORBA.portable.OutputStream)
java.lang.String Test_EJB_With_MQSeries_Package._InputqueueManagementSession_BaseStub.sendMessageWithDB2()
java.lang.String Test_EJB_With_MQSeries_Package._InputqueueManagementSession_Stub.sendMessageWithDB2()
void test.mqseries.TestBeanJMS.sendMessageEJB()
void test.mqseries.TestBeanJMS.main(java.lang.String [])
|
|
Back to top |
|
 |
krossouw |
Posted: Fri May 03, 2002 4:36 am Post subject: |
|
|
Newbie
Joined: 30 Apr 2002 Posts: 3
|
I had a breakthrough with this problem. I was using a JDBC
DataSource to connect to DB2 and after swapping to a JTA DataSource,
transaction commit and rollback logic worked just fine using JMS and DB2 in the same EJB.
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|