[prev in list] [next in list] [prev in thread] [next in thread]
List: openejb-development
Subject: Re: How to use EJBContainer to test Container Managed Transactions
From: Romain Manni-Bucau <rmannibucau () gmail ! com>
Date: 2014-06-26 15:16:30
Message-ID: CACLE=7M_PjgKeJoqLSgaoaMG9T=GJVds-j-dOojY6AN-LkN0Wg () mail ! gmail ! com
[Download RAW message or body]
Hi
which version do you use?
works with 1.6.0.2
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-06-26 17:07 GMT+02:00 jmp <jpratt@opentext.com>:
> 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.
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic