Forums Register Login

Could not enlist in transaction on entering meta-aware object!

+Pie Number of slices to send: Send
Hello everyone,

I have a transaction which spans 2 session beans and each of these session beans interact with a different EntityManager. Also, these EntityManagers interact with different data sources.

The problem is, when I try to call o method on the second EntityManager, I get this "Could not enlist in transaction on entering meta-aware object!" exception.

I've read somewhere that if I invoke another sessionbean from a session bean (which is my case), I should use the same PersistenceContext in both EJBs. But I can't do this, since my PersistenceContexts point to different data sources.

Is there a way around this?
+Pie Number of slices to send: Send
Have you configured your datasources to be XA?
+Pie Number of slices to send: Send
Not really, but thanks Jaikiran Pai, I'll try that.
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1533 times.
Similar Threads
Could not enlist in transaction on entering meta-aware object
JBOSS 4.22 & EJB 3.0: 2 datasources and one transaction error
JBoss / Oracle Rollback Problem - XARessource
Two persistance-unit at persistence.xml for two database but its thows exception
JBoss JTA - Adding multiple last resources is disallowed
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:05:23.