Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Shall I use synchronized keyword?

843793Jun 7 2004 — edited Jun 8 2004
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2004
Added on Jun 7 2004
2 comments
108 views