This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Writing data to DB asynchronously Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Writing data to DB asynchronously" Watch "Writing data to DB asynchronously" New topic

Writing data to DB asynchronously

Johnny Belab

Joined: Oct 05, 2005
Posts: 12

How should I implement a class that would write data (e.g. logging data)
asynchronously to database using JDBC?

I'm using J2SE 1.4 and 1.5.

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

There should be a DB appender in Log4J. Have a look there first, I wouldn't re-invent the wheel.

It is sorta covered in the JavaRanch Style Guide.
subject: Writing data to DB asynchronously
jQuery in Action, 3rd edition