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 » IBM MQ Java / JMS » Problem with getMessageLength

Post new topic  Reply to topic
 Problem with getMessageLength « View previous topic :: View next topic » 
Author Message
java_ppl
PostPosted: Sat Oct 20, 2007 5:58 am    Post subject: Problem with getMessageLength Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sat Oct 20, 2007 10:10 am    Post subject: Re: Problem with getMessageLength Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sat Oct 20, 2007 9:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Problem with getMessageLength
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.