This content has been marked as final.
Show 2 replies
-
1. Re: JTA EntityManager cannot access a transactions
joaobmonteiro Jun 19, 2008 11:52 PM (in response to charliepower76)Hi Charles,
It seems that you are using JTA already. The problem is that you are not allowed to get a transaction using SMPC.
First option:
- Use a conversation to manage transactions. You could use @Begin(flushMode = Manual) for example.Second option:
- Use an UserTransaction to deal with your problem. Look for UserTransaction and Seam. I know that it is possible but i never try.Regards,
-
2. Re: JTA EntityManager cannot access a transactions
charliepower76 Jun 20, 2008 12:56 AM (in response to charliepower76)I finally got it working by using the UserTransaction object and by switching from
JTA
toRESOURCE LOCAL
for the transaction-type in my persistance.xml. However, I will try using a conversation, it might be a more elegant solution.Thanks !