This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes Error when preparing a transaction for commit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Error when preparing a transaction for commit" Watch "Error when preparing a transaction for commit" New topic
Author

Error when preparing a transaction for commit

Naveen Sampra
Ranch Hand

Joined: Jun 11, 2003
Posts: 70
Hi All,

I am reading a JMS message using MDB; based on message values, using CMP 1.1 to read from DataSource1(DB2 - os/390 database) and using CMP 2.0 to update DataSource2(DB2 - Linux UDB database).

I'm using the V5.0 Test server on WSAD 5.1.1 for testing. The same problem occurs in V5.1 Test server.

When returning from the onMessage() method, the following error is thrown. The MDB calls a stateless session bean to do the processing. I am using 2PC database drivers. The JMS provider(WebSphere MQ) is registered for 2PC.

Any suggestions as to what I can try to get rid of the error.



[ March 02, 2005: Message edited by: Naveen Sampra ]
[ March 02, 2005: Message edited by: Naveen Sampra ]
samou Mouloud
Greenhorn

Joined: Apr 12, 2003
Posts: 22
XAER_RMFAIL means "unavailable resource manager", it looks like your global transaction is timing out. Try to increase timeout value
Mouloud
 
 
subject: Error when preparing a transaction for commit
 
Similar Threads
Very Very Urgent Pls.!!!! Regarding XA Transaction
Very Very Urgent Pls.!!!! Regarding XA Transaction
LocalTransaction J2CA0024E: Method rollback, within transaction branch ID
XA-Transaction Error with WAS 6.1, MQ (SIB) and Oracle 10g
An illegal attempt to commit a one phase capable resource with existing two phase-WAS