Skip to Main Content

Java Database Connectivity (JDBC)

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!

Table Lock DB2

843859Jun 27 2007 — edited Jun 28 2007
Hello All,

Just wanted some advice, here is my situation.

I have a message driven bean which i want to ensure i only receive once.
So i am storing the MDB id's in a DB2 Database.
(simple table that just stores MDB id's plus some other mdb data)

I would like to do a table lock to keep MDB reading/inserting consistency. In my transaction I would be.
check if the id is there already and an insert if its not.

I think I can use a select for update in DB2 but i have also been reading about setting isolation type of TRANSACTION_SERIALIZABLE. Which would be the best approach?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2007
Added on Jun 27 2007
1 comment
221 views