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

Problem with Savepoint

 
Sandeep Ghosh
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friend,
I am trying to use Savepoint to control rollback,but it is giving java.lang.UnsupportedOperationException.I have given connection.setAutoCommit(false); at the constructor.When I am removing Savepoint then it is working.Could anybody suggest where I am going wrong.
Thanks in adv
Sonu

[ July 07, 2002: Message edited by: Sonu Ghosh ]
 
Monty Ireland
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. what database engine are you using?
2. what jdbc driver are you using?
3. what ver of the jdk are you using?
Minus this informations. A quick guess would be that you driver, by default, is not supporting SAVEPOINT.
You may have to...
1. turn on an option on you driver...
not always done within java
2. upgrade you driver
3. apply a patch to your driver
4. upgrade the ver of java you are using
Hope this helps
 
Sandeep Ghosh
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Monty,
I am using JDBC-ODBC Bridge Driver which comes with the JDK1.4. I am using Access as Database.
Could you be more details on your suggestion
Thanks in adv
Sonu
[ July 09, 2002: Message edited by: Sonu Ghosh ]
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sonu, the JDBC-ODBC driver does not support that method.
 
Sandeep Ghosh
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Monty,
Which driver support this feature and what I have to do for that to work.
Sonu
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think MS Access itself supports transactions, so it would be difficult, if not impossible to provide transaction support via jdbc:
Taken from here, "the Jet engine does not support atomic transactions: It does not guarantee that all changes performed within a transaction boundary are committed or rolled back."
Jamie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic