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 » WebSphere Message Broker (ACE) Support » Length of input message

Post new topic  Reply to topic
 Length of input message « View previous topic :: View next topic » 
Author Message
WBI_user
PostPosted: Tue Sep 09, 2008 5:34 am    Post subject: Length of input message Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

I need to determine the length of the input message read by the MQINPUT node. I know that a MQGET will return the length of the message in the datalength field. Is that field available to the broker message flow.
I am handling very large messages (up to 70M), I need to know the size of the INPUT to determine what needs to be done inside the flow to reduce memory usage.
Back to top
View user's profile Send private message
fde
PostPosted: Tue Sep 09, 2008 6:19 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jul 2007
Posts: 65

OriginalLength of MQMD is an output field of MQGET
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzak.doc/mqmd.htm

I suppose investigating OriginalLength during debug.
_________________
Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology
Back to top
View user's profile Send private message
broker_new
PostPosted: Tue Sep 09, 2008 6:25 am    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

1.Convert the input message to ASBITSTREAM(InputBody).
2.Cast it as character and
3.find the length of it
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Tue Sep 09, 2008 6:36 am    Post subject: Re: Length of input message Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi WBI_user,
WBI_user wrote:
I am handling very large messages (up to 70M), I need to know the size of the INPUT to determine what needs to be done inside the flow to reduce memory usage.
First please tell us what you intend to do if your message is over the limit ? If we know what you are allowed to do, it would be easier to suggest other ways forward.

Regards.
Back to top
View user's profile Send private message Send e-mail
WBI_user
PostPosted: Tue Sep 09, 2008 7:32 am    Post subject: Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

Thanks for the quick replies. To be honest, I am still thinking exactly what to do with messages of that size. But I do know that I only have 1G of virtual memory space to use (the default for each of our execution group).
My flow is to insert different tags of a XML message to the DB after some minor processing. This XML input message is variable in length. My flow is also subflow which can be called by other flows after I inserted the necessary data. So I have to use as little memory as possible.
One of the tags of the XML input contains scan images of files or video it can be a few hundred bytes or many Megs. The entire message is of course less than 100M which is the current max size for MQ.
If I can determine the size of the message right after the MQGET perhaps I can make some decision on what to do next. Perhaps I should insert this large field first and drop it from the message tree, than handle the rest of the message instead of doing the DB insert of all necessary field at the end of the flow. Whatever data needed from inside the field can be handled some other way. If the message is small, perhaps I can keep the field in the tree and do all the necessary processing within the flow before I do the final DB insertion.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Length of input message
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.