[jboss-user] [EJB 3.0] - Re: How to connect multiple databases at same time?

kmagnant do-not-reply at jboss.com
Mon Oct 15 15:45:40 EDT 2007


OOPS, I forgot to insert the entityManager.joinTransaction() statement after super.getEntityManager(persistenceUnit).  You need to do this otherwise your database changes will not get committed until the next operation involving that entityManager - at least that is the observed behavior.

You also need to do the joinTransaction in subclasses of TableBeans or you will observe the delayed commit behavior described above.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095389#4095389

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095389



More information about the jboss-user mailing list