Search in sources :

Example 1 with UserTransactionImpl

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

the class AppTest method createUtx.

private UserTransaction createUtx() throws javax.naming.NamingException {
    UserTransaction utx = new UserTransactionImpl();
    InvocationManager im = new org.glassfish.api.invocation.InvocationManagerImpl();
    ((UserTransactionImpl) utx).setForTesting(t, im);
    return utx;
}
Also used : InvocationManager(org.glassfish.api.invocation.InvocationManager) UserTransactionImpl(com.sun.enterprise.transaction.UserTransactionImpl)

Example 2 with UserTransactionImpl

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

the class AppTest method createUtx.

private UserTransaction createUtx() throws javax.naming.NamingException {
    UserTransaction utx = new UserTransactionImpl();
    InvocationManager im = new org.glassfish.api.invocation.InvocationManagerImpl();
    ((UserTransactionImpl) utx).setForTesting(t, im);
    return utx;
}
Also used : InvocationManager(org.glassfish.api.invocation.InvocationManager) UserTransactionImpl(com.sun.enterprise.transaction.UserTransactionImpl)

Aggregations

UserTransactionImpl (com.sun.enterprise.transaction.UserTransactionImpl)2 InvocationManager (org.glassfish.api.invocation.InvocationManager)2