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 <[email protected]>:

> 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.
>

Reply via email to