|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Breaking Message ?? |
« View previous topic :: View next topic » |
Author |
Message
|
Yash1234 |
Posted: Wed Oct 04, 2006 10:06 am Post subject: Breaking Message ?? |
|
|
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 |
|
 |
kevinf2349 |
Posted: Wed Oct 04, 2006 10:11 am Post subject: |
|
|
 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 |
|
 |
Yash1234 |
Posted: Wed Oct 04, 2006 11:59 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Oct 04, 2006 12:04 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|