Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / March 2007

Tip: Looking for answers? Try searching our database.

jdbc commit issue

Thread view: 
Arti - 13 Mar 2007 06:45 GMT
Hi,

I'm facing some problems with the JDBC connection commit.
I'm using an Oracle8i client and server.
The jdbc library is classes12.jar

My application uses eclipse3.1 as an IDE and the jdk version is
jdk1.5.0_01

The flow of logic is such that I acquire 2 to 3 connections to my
database repository. On each of these connections some update/insert
statements
are executed (through jdbc PrepareStatement->executeUpdate())
After the update statements I issue a connection.commit() on each of
the connections where update statements are fired.

I have noticed sometimes that although connection.commit has been
issued, my DB does not have any data.

If anyone has any clue to this please let me know.

Thanks for your time.
Arti
Arne Vajhøj - 14 Mar 2007 00:49 GMT
> I'm facing some problems with the JDBC connection commit.
> I'm using an Oracle8i client and server.
[quoted text clipped - 12 lines]
> I have noticed sometimes that although connection.commit has been
> issued, my DB does not have any data.

1)  It sounds very weird that you do not get an exception and data
    are not there.

    You are not eating exceptions ?

2)  Sounds as if you could use a transaction manager.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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



©2008 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.