Groups > IBM > WebSphere Studio Application Site Developer > Why Remote EJB Call can not be in the same transaction with CMP?




Why Remote EJB Call can not be in the same transaction with
CMP?

Why Remote EJB Call can not be in the same transaction with CMP?
Tue, 18 Dec 2007 01:44:23 EST
Hi, my friends. Recently I develop a remote Session bean which will access DB
through DAO and will be invoked on another PC within another session Bean, and
the caller session bean will access CMP after remote call. Exception occurred as
following:<br />
<b>TRN0086I: XAException encountered during prepare phase for transaction
com.ibm.ws.Transaction.JTA.TransactionImpl@52b4437a#tid=17. Local resources
follow.</b><br />
<b><strike>12/17/07 14:06:29:906 CST</strike> 3fc9432d
RegisteredRes E WTRN0089I: LocalTransactionWrapper@2b5f4334  enlisted:true 
localTransaction:com.ibm.ws.rsadapter.spi.WSRdbSpiLocalTransactionImpl@2b5ac334:
Vote: none.</b><br />
<b><strike>12/17/07 14:06:30:578 CST</strike> 3fc9432d
SystemErr     R javax.ejb.TransactionRolledbackLocalException:  ; nested
exception is: com.ibm.ws.exception.WsEJBException</b><br />
<b><strike>12/17/07 14:06:30:578 CST</strike> 3fc9432d
SystemErr     R com.ibm.ws.exception.WsEJBException</b><br />
<br />
Though I get the solution that place the remote call method on another new
separate transaction, I don’t know why? Can any body tell me the detail? Some
document for the detail is perfect!<br />
<br />
Post Reply
about | contact