ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Database - Read committed

Post new topic  Reply to topic
 Database - Read committed « View previous topic :: View next topic » 
Author Message
vadivel
PostPosted: Fri Sep 14, 2007 5:23 am    Post subject: Database - Read committed Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,

I'm using MBv5 in my project and in my message flow, I use a common procedure that does a select from a table for a key and if not found inserts a record with the key value else updates the record. There can be more than one message flow calling the same procedure concurrently with the same key. The expected behaviour is, first flow inserts the record and the other flow updates the record. But currently, the first flow selects and finds no record and concurrently the second flow also does a select before the first flow inserts and commits the record. Hence the second flow also tries to insert the same record and throws an error. Could you please help me resolving this issues.


Thanks
Vadi
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Fri Sep 14, 2007 5:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

How would you solve this problem if you were writing stand alone programs, rather than message flows?

Really, I think the thing to do is handle the error gracefully, and assume someone else updated the record.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Database - Read committed
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.