wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Problem in using multiple persistence units Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problem in using multiple persistence units" Watch "Problem in using multiple persistence units" New topic
Author

Problem in using multiple persistence units

Rafael Rque
Greenhorn

Joined: Mar 25, 2010
Posts: 10
Hi all,

I´ve spent some time browsing about the problem I´m facing,but couldn´t make this work.

I need to comunicate with 2 diferente MSSql databases,so this is the config I made:



Here´s an example of trying to use this configuration:



Which leads me to this error popping up:


What am I doing wrong?

Regards,
Rafael Roque
ITIL FOUNDATIONS CERTIFIED
IBM SOA SOLUTIONS CERTIFIED
SCEA
SCWCD
SCJP
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

I believe, you need to declare XA (Global Transactions) kind of transaction manager, rather than the usual. I hope your application server supports XA.


S.D. MADHAN
Not many get the right opportunity !
 
 
subject: Problem in using multiple persistence units
 
Similar Threads
Cannot find the declaration of element 'beans' -- application context invalid?
createSQLQuery in Spring
spring wont inject the entitymanager
JPA's context injection with Hibernate as engine
appContext.xml for transactionManager