We are trying to test an ejb that uses container managed transactions using
the EJBContainer.
The bean is annotated as follows:
@Stateless
@LocalBean
@TransactionManagement(TransactionManagementType.CONTAINER)
public class BasicSolutionTest {
@Resource
TransactionSynchronizationRegistry txReg;
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public void createSolution() {
..
}
}
When the container starts we get the following warning
WARNING: WARN ...
com.opentext.cordys.entityCore.solutions.baseSolutions.BasicSolutionTest:
Ignoring 1 invalid @TransactionAttribute annotations. Bean not using
Container-Managed Transactions.
We also notice that txReg is always null;
How do you make the EJBContainer support Container-Managed Transactions
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/How-to-use-EJBContainer-to-test-Container-Managed-Transactions-tp4670207.html
Sent from the TomEE Dev mailing list archive at Nabble.com.