Author |
Message
|
gr3ymatt3r |
Posted: Tue Nov 13, 2007 4:54 am Post subject: Splitted Messages....How to merge parts of a message |
|
|
Novice
Joined: 25 Aug 2007 Posts: 11
|
I am using CPP classes Websphere MQ Client
Running on Windows XP
The Websphere Server is Running on Windows 2003 server
with the Queue having MaxMessageLength = 100
So whenever i send a message to the queue, it gets splitted into messages of size 100.
And while receiving such messages I am getting Chunks of size 100 of a single Message......then How can I Know which parts belong to the actual SINGLE message.....
Thanks... |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 13, 2007 4:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
That's a very small max message length....
Look up the grouping and sequencing options in the APG. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Nov 13, 2007 5:30 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I would have suggested looking into how to set the MAXMSGL on a queue.  |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 13, 2007 5:32 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bower5932 wrote: |
I would have suggested looking into how to set the MAXMSGL on a queue.  |
Given the discrepancy between that value and the default, I would assume someone on site knows how to change it!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gr3ymatt3r |
Posted: Fri Nov 30, 2007 5:06 am Post subject: Re: Splitted Messages....How to merge parts of a message |
|
|
Novice
Joined: 25 Aug 2007 Posts: 11
|
gr3ymatt3r wrote: |
I am using CPP classes Websphere MQ Client
Running on Windows XP
The Websphere Server is Running on Windows 2003 server
with the Queue having MaxMessageLength = 100
So whenever i send a message to the queue, it gets splitted into messages of size 100.
And while receiving such messages I am getting Chunks of size 100 of a single Message......then How can I Know which parts belong to the actual SINGLE message.....
MORE INFO>>>
While receiving those messages I am getting the MQMD.MsgType as MQMT_DATAGRAM. I am cheching for MQMT_APPL_FIRST and MQMT_APPL_LAST but not getting these values.
Do I need to do some setting on the server for getting the "segmented messages"
Thanks... |
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 30, 2007 5:22 am Post subject: Re: Splitted Messages....How to merge parts of a message |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gr3ymatt3r wrote: |
MORE INFO>>>
While receiving those messages I am getting the MQMD.MsgType as MQMT_DATAGRAM. I am cheching for MQMT_APPL_FIRST and MQMT_APPL_LAST but not getting these values.
Do I need to do some setting on the server for getting the "segmented messages" |
No.
And what has message type to do with segmentation? Why (when these are clearly being sent as datagrams) would you get any application defined values? Which would not (or should not) be either of those 2 actual values which are intended to describe the range?
You either need to change max length as we suggested, or re-read the material on grouping & segmentation. As I suggested. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|