synchronizing DB updating in servlet
hi,
i'd like to the know what code I should synchronize when updating my database. I currently just have the lock as follows in a servlet:
synchronized(this){
statement.executeUpdate();
}
but i'm wondering if this is enough and if i should synchronize my
statement.setString(x, x)
calls?
thanks

