I have problem :
I have object A And object B
object A call method save in object B. When method save in object B fail, object A try to call method save in object B again.
this situation makes error (when jboss is running):
ERROR [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] Exception caught executing SQL
org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!
javax.transaction.SystemException: Could not enlist XAResource!javax.transaction.RollbackException: Already marked for rollback; - nested throwable:
(javax.resource.ResourceException: Could not enlist in transaction on entering meta-aware object!javax.transaction.SystemException:
Could not enlist XAResource!javax.transaction.RollbackException: Already marked for rollback)
How to solve this error ?
thx