Search in sources :

Example 26 with JavaEETransaction

use of com.sun.enterprise.transaction.api.JavaEETransaction in project Payara by payara.

the class EjbContainerUtilImpl method getActiveTxCache.

@Override
public Object getActiveTxCache(Transaction jtx) {
    JavaEETransaction tx = (JavaEETransaction) jtx;
    TxData txData = getTxData(tx);
    return txData.activeTxCache;
}
Also used : JavaEETransaction(com.sun.enterprise.transaction.api.JavaEETransaction)

Example 27 with JavaEETransaction

use of com.sun.enterprise.transaction.api.JavaEETransaction in project Payara by payara.

the class EjbContainerUtilImpl method setActiveTxCache.

@Override
public void setActiveTxCache(Transaction jtx, Object cache) {
    JavaEETransaction tx = (JavaEETransaction) jtx;
    TxData txData = getTxData(tx);
    txData.activeTxCache = cache;
}
Also used : JavaEETransaction(com.sun.enterprise.transaction.api.JavaEETransaction)

Example 28 with JavaEETransaction

use of com.sun.enterprise.transaction.api.JavaEETransaction in project Payara by payara.

the class EjbContainerUtilImpl method getContainerSync.

@Override
public ContainerSynchronization getContainerSync(Transaction jtx) throws RollbackException, SystemException {
    JavaEETransaction tx = (JavaEETransaction) jtx;
    TxData txData = getTxData(tx);
    if (txData.sync == null) {
        txData.sync = new ContainerSynchronization(tx, this);
        tx.registerSynchronization(txData.sync);
    }
    return txData.sync;
}
Also used : JavaEETransaction(com.sun.enterprise.transaction.api.JavaEETransaction)

Example 29 with JavaEETransaction

use of com.sun.enterprise.transaction.api.JavaEETransaction in project Payara by payara.

the class EjbContainerUtilImpl method getBeans.

@Override
public Vector getBeans(Transaction jtx) {
    JavaEETransaction tx = (JavaEETransaction) jtx;
    TxData txData = getTxData(tx);
    if (txData.beans == null) {
        txData.beans = new Vector();
    }
    return txData.beans;
}
Also used : JavaEETransaction(com.sun.enterprise.transaction.api.JavaEETransaction) Vector(java.util.Vector)

Aggregations

JavaEETransaction (com.sun.enterprise.transaction.api.JavaEETransaction)29 SystemException (javax.transaction.SystemException)5 ResourceHandle (com.sun.enterprise.resource.ResourceHandle)4 XAException (javax.transaction.xa.XAException)4 PoolingException (com.sun.appserv.connectors.internal.api.PoolingException)3 ResourceState (com.sun.enterprise.resource.ResourceState)3 RemoteException (java.rmi.RemoteException)3 Vector (java.util.Vector)3 EJBException (javax.ejb.EJBException)3 WorkException (javax.resource.spi.work.WorkException)3 InvocationException (org.glassfish.api.invocation.InvocationException)3 PhysicalEntityManagerWrapper (com.sun.enterprise.container.common.impl.PhysicalEntityManagerWrapper)2 JavaEETransactionManager (com.sun.enterprise.transaction.api.JavaEETransactionManager)2 RequestTraceSpanLog (fish.payara.notification.requesttracing.RequestTraceSpanLog)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 EntityManagerFactory (javax.persistence.EntityManagerFactory)2 ComponentInvocation (org.glassfish.api.invocation.ComponentInvocation)2 EJBLocalObjectImpl (com.sun.ejb.containers.EJBLocalObjectImpl)1 JavaEEContainer (com.sun.enterprise.container.common.spi.JavaEEContainer)1