Olá!
Estou com o seguinte problema. Tenho um EJB que precisa chamar outro EJB. Preciso que a chamada do segundo esteja na mesma transação do primeiro. Porém não estou conseguindo. No primeiro EJB eu faço um lookup para o segundo.
Ocorre o seguinte erro:
11:17:59,186 WARN [loggerI18N]
[com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow]
[com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow]
Adding multiple last resources is disallowed. Current resource is
org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@18f4ac9
11:17:59,218 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
11:17:59,219 ERROR [JDBCExceptionReporter] Could not enlist in transaction
on entering meta-aware object!; - nested throwable:
(javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist
resource, see the previous warnings. tx=TransactionImple < ac,
BasicAction: 7f000101:d609:47f63849:5b status: ActionStatus.ABORT_ONLY >);
- nested throwable: (org.jboss.resource.JBossResourceException: Could not
enlist in transaction on entering meta-aware object!; - nested throwable:
(javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist
resource, see the previous warnings. tx=TransactionImple < ac,
BasicAction: 7f000101:d609:47f63849:5b status: ActionStatus.ABORT_ONLY >))
11:17:59,345 ERROR [PreCadastroControl]
org.hibernate.exception.GenericJDBCException: Cannot open connection
Algue sabe como posso corrigir isso?
[]s