• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Savepoint

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Monty,
Which driver support this feature and what I have to do for that to work.
Sonu
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Grow your own food... or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic