Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Ingres Topics / January 2007

Tip: Looking for answers? Try searching our database.

[Info-Ingres] java and autocommit?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hans Weisenberger - 19 Jan 2007 09:08 GMT
We are using Ingres2006 server and on the client a java applikation.

I want to handle the commit by myself. Is there a possibility to switch
off the autocmomit of the java application.
Does the connection parameter 'dbms' this?

Any hints?
Signature

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

izena@mixmail.com - 19 Jan 2007 10:01 GMT
Hi Hans,

The usual way of managing autocommit is to check if your jdbc
connection supports transactions
"conn.getMetaData().supportsTransactions()" and then if so, turn of
autocommit "conn.setAutoCommit(false)" This is what you normally see in
many java projects, whatever the jdbc-dbms server are they using (or
expecting).

As you see it must be done whenever you get a connection. I do not know
if any dbms vendor or driver allows to done it globally outside the
code. If so, I do not recommend that way to you as your code will not
be portable or applied to other dbms as is (a very important feature)

HTH

Carlos

Hans Weisenberger ha escrito:

> We are using Ingres2006 server and on the client a java applikation.
>
[quoted text clipped - 6 lines]
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.