0

How to connect two mysql schemas one in localhost and other in computer in hibernate in j2ee project using glassfish server. I have created 2 persistence units and 2 data sources. Is it the correct way to do this? Data retrieving can be done from both schemas.
But it throws

java.sql.SQLException: Error in allocating a connection.Cause: java.lang.IllegalStateException: Local transaction already has 1 non-XA Resource: cannot add more resources. " exception when updating the database.

Have you any ideas to do this?

Rakib
  • 7,435
  • 7
  • 29
  • 45
Sudarshani Perera
  • 238
  • 2
  • 3
  • 14

0 Answers0