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 » General Discussion » Message and Segments Locking???

Post new topic  Reply to topic
 Message and Segments Locking??? « View previous topic :: View next topic » 
Author Message
starfish77
PostPosted: Sun Nov 23, 2003 10:03 pm    Post subject: Message and Segments Locking??? Reply with quote

Apprentice

Joined: 07 Nov 2003
Posts: 31
Location: USA

I am running 2 processes (2 instances of same application running in their own memory space) which access same queue to retrieve messages .I am using application managed segmentation as the message size is going to be huge. I am not able to lock 1 whole message, meaning ,i want 1 process to access all the segments of 1 logical message. Other process
should not have access to any of the segments, if first process is working on any segments.

If my message queue looks like following, where there are 2 logical messages with 4 segmenets each.

message1seg1
message1seg2
message1seg3
message1seglast
message2seg1
messageseg2
message2seg3
message2seglast

If Process 1 is working on message1seg1, concurrent Process 2 should not be allowed to work on any segment of message1.Rather, it should access message2seg1 and so on.

The problem right now happening is my process 1 works on message1seg1 and process2 works on message1seg2. I am not able to construct the whole message again.

Is there any MQ field I can use to identify message 1 is being worked upon. Will MSGMO_LOCK option help???But i guess it locks
the whole queue, which defeats the purpose of having 2 processes running simulteneously. I am not sure if MatchOptions will solve the problem.

I am using MQ5.3 on AIX.

I will really appreciate any suggestions given.

Thanks,
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 » General Discussion » Message and Segments Locking???
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.