Hello,
I would like to use a Bean Managed Transaction in EJB3 Stateless.
I make an ejb-jar.xml file deploy in METAINF's ejb3 with the property:
<transaction-type>Bean</transaction-type>
When i use injection to use userTransaction.
I can't deploy the EJB. The message is :
java.lang.IllegalStateException: Container PortService: it is illegal to inject UserTransaction into a CMT bean
Thank you for your help
does it work if you use the annotation?
@javax.ejb.TransactionManagement?