[jboss-user] [JCA/JBoss] - Re: autocommit question

vickyk do-not-reply at jboss.com
Tue Feb 26 11:35:16 EST 2008


"amit4uall" wrote : 
  | and the exception is:
  | java.sql.SQLException: You cannot commit with autocommit set!
  |         at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcComm
  | it(BaseWrapperManagedConnection.java:545)
  |         at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConne
  | ction.java:334)
  |         at com.syfact.core.util.DBConduit.endTransaction(DBConduit.java:1500)...
  | 
  | 
  | 
  | Thanks and Regards,
  | Amit
  | 
Your problem is not related to this thread you would be calling the commit() on the connection whose autocommit property is set to true.

You are seeing this 

SQLException - if a database access error occurs or this Connection object is in auto-commit mode
http://java.sun.com/javase/6/docs/api/java/sql/Connection.html#commit()


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132241#4132241

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132241



More information about the jboss-user mailing list