FuseByExample / esb-transactions

Sample project using Aries' JTA transaction manager to coördinate transactions using JMS and JPA.
Other
18 stars 21 forks source link

"org.apache.openjpa.persistence.TransactionRequiredException: There is no managed transaction in progress to sync this EntityManager with" - deploying in fabric #11

Open pgfox opened 10 years ago

pgfox commented 10 years ago

Sometimes seeing

org.apache.openjpa.persistence.TransactionRequiredException: There is no managed transaction in progress to sync this EntityManager with.

It seems that the start order of the bundles are causing this exception. In fabric (JBoss Fuse 6.1) the only way to influence start order is to import/export OSGi services between bundles.

adding a pull request with sample update that worked around the issue.