File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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 !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in using multiple persistence units