File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Distributed Tr mgmt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Distributed Tr mgmt" Watch "Distributed Tr mgmt" New topic
Author

Distributed Tr mgmt

Jagathi Gade
Greenhorn

Joined: Jun 16, 2004
Posts: 2
I am trying to implement J2C and JDBC on WAS 5.0.1
I have been consistenetly getting the IllegalStateException whenever I try to make a J2C connection and switch back to JDBC connection
This is the stack
[1/10/05 13:24:34:257 EST] 4e809242 TransactionIm E WTRN0062E: An illegal attempt to use multiple resources that have only one-phase capability has occurred within a global transaction.

[1/10/05 13:24:34:272 EST] 4e809242 LocalTransact E J2CA0030E: Method enlist caught java.lang.IllegalStateException
at com.ibm.ejs.jts.jta.TransactionImpl.enlistResource(TransactionImpl.java:546)
at com.ibm.ejs.jts.jta.JTSXA.enlistResource(JTSXA.java:1061)
at com.ibm.ejs.jts.jta.JTSXA.enlistOnePhase(JTSXA.java:1038)
at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(LocalTransactionWrapper.java:504)
at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:711)
at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.processInteractionPendingEvent(WSRdbManagedConnectionImpl.java:1173)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNecessary(WSJdbcConnection.java:307)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1255)
at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1222)

Did anyone come across such an error ? Does anyone have an idea if 2 phase commit is possible at all with WAS 5.0.1 ? Please help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Distributed Tr mgmt