Shall I use synchronized keyword?
843793Jun 7 2004 — edited Jun 8 2004Hi there!
I have made a small client-server applikation with RMI.
The server has a connection to a database (only one connection). On the server I have also placed the SQL-queries in separate methods that can be invoced from the clients. The question is:
Do I have to sychronize these methods that access the databse from the one and only database connection? Or can several clients that invoce the same method simultanously use the same one and only database connection?
Thanks in advance!
/Mackan