This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes is there any condition that a connection stop until another connection commit? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "is there any condition that a connection stop until another connection commit?" Watch "is there any condition that a connection stop until another connection commit?" New topic
Author

is there any condition that a connection stop until another connection commit?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
Hi
Thank you for reading my post
is there any scenario that a JDBC connection block (suspend) in its operation (for example a select) until another connection finishes its transaction?

Thanks.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2350

Yes, you might encounter a database lock. This can block you.
Regards, Jan


OCUP UML fundamental
ITIL foundation
raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 550
can you please explain when we may face a lock which can block a connection?

thanks
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2350

One possible scenario is described here.
Regards, Jan
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2350

Oracle has published a document comparing their Oracle 10g database with IBM's DB2 database. Locking and blocking is one of the main topics there.
See section Transaction Processing.

Regards, Jan
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: is there any condition that a connection stop until another connection commit?
 
Similar Threads
getRecord(int recNum) requires locking record first?
Connection doubt
releasing connection in CMT
Connection pool in cluster environment
PreTest option in DataSource Property in Websphere