|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem with getMessageLength |
« View previous topic :: View next topic » |
Author |
Message
|
java_ppl |
Posted: Sat Oct 20, 2007 5:58 am Post subject: Problem with getMessageLength |
|
|
Novice
Joined: 22 Sep 2006 Posts: 13
|
Hi,
I have created an MQ message from an 80MB file using a java app running on a unix server. After creating the message, app tries to read the lenghth using getMessageLength() .
The java application fails here. However, It does not throw any exception .
Please could someone help ?!
Thanks# |
|
Back to top |
|
 |
Vitor |
Posted: Sat Oct 20, 2007 10:10 am Post subject: Re: Problem with getMessageLength |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
java_ppl wrote: |
The java application fails here. However, It does not throw any exception . |
If there's no exception, how do you know it's failed?
We need some symptoms if we're going to be of any assistance to you. Also some information about your platform and set up would help.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Oct 20, 2007 9:40 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Remember as well that getMessageLength() is subjective.
Say your message is text in a one byte CCSID but your qmgr or app is asking for unicode (CCSID 1200) which is a double byte CCSID.
Now your message length is given as 2000 chars but in order to display them you will need a 4000 chars buffer....
Enjoy  _________________ MQ & Broker admin |
|
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
|
|
|
|