It seems that you are using JTA already. The problem is that you are not allowed to get a transaction using SMPC.
- Use a conversation to manage transactions. You could use @Begin(flushMode = Manual) for example.
- Use an UserTransaction to deal with your problem. Look for UserTransaction and Seam. I know that it is possible but i never try.
I finally got it working by using the UserTransaction object and by switching from
RESOURCE LOCALfor the transaction-type in my persistance.xml. However, I will try using a conversation, it might be a more elegant solution.