users@glassfish.java.net

Re: Transactios and non xa suport in database.

From: <forums_at_java.net>
Date: Thu, 19 Jan 2012 13:05:37 -0600 (CST)

It looks like transactions are not supported at all on your database. The
bottom of the stack trace shows that GF code didn't go through its XA layer
(the XA in the class names are just the internal wrappers):

Caused by: javax.transaction.xa.XAException:
com.sun.appserv.connectors.internal.api.PoolingException:
javax.resource.spi.LocalTransactionException: Transactions not supported
at
com.sun.enterprise.resource.ConnectorXAResource.handleResourceException(ConnectorXAResource.java:115)
at
com.sun.enterprise.resource.ConnectorXAResource.resetAssociation(ConnectorXAResource.java:287)
at
com.sun.enterprise.resource.ConnectorXAResource.commit(ConnectorXAResource.java:128)
at
com.sun.enterprise.transaction.JavaEETransactionImpl.commit(JavaEETransactionImpl.java:501)

 

Can you try a plain JDBC test without EJBs - setAutoCommit(false) and then
commit the connection? If it doesn't work, your only option is a BMT EJB
with each auto-commit true.

 

-marina


--
[Message sent by forum member 'mvatkina']
View Post: http://forums.java.net/node/882841