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 » Breaking Message ??

Post new topic  Reply to topic
 Breaking Message ?? « View previous topic :: View next topic » 
Author Message
Yash1234
PostPosted: Wed Oct 04, 2006 10:06 am    Post subject: Breaking Message ?? Reply with quote

Newbie

Joined: 02 Oct 2006
Posts: 8

Hi,

I have a question regarding the message brakage, to explain better here is the scnario (My program is Server here)

Client 1: Put the message on Queue (Q1), get the messageID & wait for reply on message reply Queue (Q2).

Server1: Read the message from Q1, process the reply message & put the message on Q2 with correlation id as message id so the client1 can read itz reply with the message id (matching correlation id).

Problem comes as the reply message is big & client1 says they cannot handle big message & want message in parts. I want to know whether I can break the message in parts & send to reply queue with the same correlation Id for all the message ? Or is there any other solution for this.

Regards,
Yash.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed Oct 04, 2006 10:11 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

How big is big? It may be just a case of increasing the buffer size in he program.

If the platform supports it you could use segmentation, of even message groups but the bottom line it that you will have to make these coding changes to handle this yourself.
Back to top
View user's profile Send private message
Yash1234
PostPosted: Wed Oct 04, 2006 11:59 am    Post subject: Reply with quote

Newbie

Joined: 02 Oct 2006
Posts: 8

Max size of the message is 250 KB, but this max message has parts of data. Example, client does a search for a person & I return all possible person records, there can be 100 or more records & currently the idea is to send all records as a xml records but my client is asking me to send one record at a time & I need to find out whether it is possible or not.

The question I have is if I send one record at a time, can I send each record with the same correlationId ? If yes then how will be client know how many number of record he has to read (how many times the get loop be called)?

My environment is Java & my client environment is COBOL.

Apart from this is there any MQ support for Language Natural ?

Regards,
Yash
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 04, 2006 12:04 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You should look at message grouping.

You wouldn't send each reply with the same correlation ID, but rather in the same logical group. The first one could have the correlation ID, and then the client could keep getting messages in the same group.

Or you could send them with the same correlation ID, and the client would just keep getting messages for that correlation ID until it didn't find any more. Then it would know it's done.... But on the other hand, that means that there would be many messages going through the system with the same CorrellID. It's not ... bad... to do that, but it's not good either.
_________________
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 » General Discussion » Breaking Message ??
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.