Author |
Message
|
Ajju. |
Posted: Fri Aug 16, 2002 11:23 am Post subject: Message size....... unique problem |
|
|
 Voyager
Joined: 26 Jul 2002 Posts: 77
|
Hi I am using MQseries 60days evaluation version for some prototyping.
now i am having message size problem .
first if i try to put message manualy using MQseries API exerciser i am unable to put the message more than 30K bytes and can receive exactly 30kb message.
second if i put a message using java program then the get message size is something around 40K byte.
now i am wondering when my Q setting is default for the Q for max message size equals to @4 million Bytes still i am unable to put message of size aroung 80kb.
is this issue with the 60days evaluation copy of MQseries or i need to take some extra setting care while programming ..... by the way i am programming in javaAPI for MQseries.
Ajit. |
|
Back to top |
|
 |
bduncan |
Posted: Sun Aug 18, 2002 5:32 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Ajit,
When you say "i am unable to put the message" what does this mean? When you issue the MQPUT, what is the CompCode and Reason returned? Is there anything being written in the MQ logs, etc? Without knowing the exact error message you are getting it will be impossible to diagnose this... _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
jc_squire |
Posted: Sun Aug 18, 2002 6:37 pm Post subject: |
|
|
 Centurion
Joined: 14 Apr 2002 Posts: 105 Location: New Zealand
|
This is probably the buffer limit of the API exerciser and don't think you can change it. As Brandon mentioned, the return codes will clarify what the problem is.
Regards _________________ J C Squire
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
Ajju. |
Posted: Mon Aug 19, 2002 5:56 am Post subject: |
|
|
 Voyager
Joined: 26 Jul 2002 Posts: 77
|
Thanks for your respone !!
Unable to put message does not means that PUT returns some error code.
what i wanted to convey is that i can put the message successfuly on the Q but the message gets truncated even if the Mesage buffer size is default set to the Q max message length.(i.e 4194304 bytes) and the PMO is all default.
My message size is more than 30KB and when i GET message back from the Q I get only 30KB message ... rest is truncated.
Ajit. |
|
Back to top |
|
 |
jc_squire |
Posted: Mon Aug 19, 2002 4:13 pm Post subject: |
|
|
 Centurion
Joined: 14 Apr 2002 Posts: 105 Location: New Zealand
|
An application normaly has a buffer size set internally in the code which is not neccessarily the same as the Q max msg length. These are two separate issues. Depending on the programming logic, applications can behave differently when they try to process a msg larger than the buffer size - the MQ API exerciser obviously truncates the data.
Regards _________________ J C Squire
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
Ajju. |
Posted: Tue Aug 20, 2002 8:08 am Post subject: |
|
|
 Voyager
Joined: 26 Jul 2002 Posts: 77
|
Got through it !!....... it was my setting problem
Thanks,
Ajit. |
|
Back to top |
|
 |
|