Search in sources :

Example 1 with MethodTransactionInfo

use of org.apache.openejb.assembler.classic.MethodTransactionInfo in project tomee by apache.

the class EjbJarInfoBuilder method initMethodTransactions.

private void initMethodTransactions(final EjbModule jar, final Map ejbds, final EjbJarInfo ejbJarInfo) {
    final List<ContainerTransaction> containerTransactions = jar.getEjbJar().getAssemblyDescriptor().getContainerTransaction();
    for (final ContainerTransaction cTx : containerTransactions) {
        final MethodTransactionInfo info = new MethodTransactionInfo();
        info.description = cTx.getDescription();
        info.transAttribute = cTx.getTransAttribute().toString();
        info.methods.addAll(getMethodInfos(cTx.getMethod(), ejbds));
        ejbJarInfo.methodTransactions.add(info);
    }
}
Also used : MethodTransactionInfo(org.apache.openejb.assembler.classic.MethodTransactionInfo) ContainerTransaction(org.apache.openejb.jee.ContainerTransaction)

Aggregations

MethodTransactionInfo (org.apache.openejb.assembler.classic.MethodTransactionInfo)1 ContainerTransaction (org.apache.openejb.jee.ContainerTransaction)1