Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQLException in distributed application

 
mohan kumar r
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting the bellow exception when there is rollBack() state ment in my code.

java.sql.SQLException: Cannot call Connection.rollback in distributed transaction. Transaction Manager will commit the resource manager when the distributed transaction is committed. at weblogic.jdbc.wrapper.JTSConnection.rollback

may i know the meaning for the exception.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't really a "Distributed Java" question, even though "distributed" is mentioned in the error... The error is because your transaction depends on more than 1 "resource" - either your transaction spans multiple databases, or you're using JMS and the transaction spans both the database and the JMS message store.

Moving to the JDBC forum, since it's really more about transactions and SQL...
[ September 18, 2006: Message edited by: Nathan Pruett ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic