concurrency concersn in JDBC operations?

S

Steve

If the web application only has JDBC insert operation, do u need to
worry about the concurrency? Let's assume the web application is just
using JDBC for database manipulation. I'm concerned if the transaction
management mechanism is necessary.

If the application has update operation, then we should make sure each
the update operation is locked if 2 user are trying to update the same
record at the same time?

Please advice. thanks!!
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Steve said:
If the web application only has JDBC insert operation, do u need to
worry about the concurrency? Let's assume the web application is just
using JDBC for database manipulation. I'm concerned if the transaction
management mechanism is necessary.

If the application has update operation, then we should make sure each
the update operation is locked if 2 user are trying to update the same
record at the same time?

The database should itself handle two programs/threads doing single
SQL statement operations.

If you have two programs/threads doing multiple SQL statement
operations, then you may need to use transactions and specify
an appropriate transaction isolation level.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top