Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQL

 
amit chaudhary
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting this error. I have read in some topic that this occurs because of some database permissions and some ejb settings.
But my problem is different.
I have tried running the application with a database username/password and it is working fine but for a different username/password of different database altogether but keeping same the jars and xml files, it is throwing this exception.
Can somebody suggest me any reason as to why this error is coming just by changing the database only??
Your help will be highly appreciated.
 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this http://muness.blogspot.com/2005/09/distributed-transactions-and-timeouts.html
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic