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 » Getting the message size

Post new topic  Reply to topic
 Getting the message size « View previous topic :: View next topic » 
Author Message
Glass
PostPosted: Fri Nov 21, 2008 12:27 pm    Post subject: Getting the message size Reply with quote

Acolyte

Joined: 02 Mar 2006
Posts: 56

Hi,

I am using Broker 6.02 and I would like to store the message size (in bytes/KB does not matter) in the database. Is there a way to get the message size/length and store it as an integer in esql? The message is in XML format.

Cheers!
Back to top
View user's profile Send private message
wraymore
PostPosted: Fri Nov 21, 2008 1:17 pm    Post subject: Reply with quote

Centurion

Joined: 16 Aug 2005
Posts: 114
Location: Burlington, NC USA

DECLARE MsgLngth INTEGER;
SET MsgLngth = LENGTH(InputBody);
Back to top
View user's profile Send private message
Glass
PostPosted: Fri Nov 21, 2008 1:33 pm    Post subject: Reply with quote

Acolyte

Joined: 02 Mar 2006
Posts: 56

I have tried that and it does not work. It gives me a value of 3 for a 12 KB and also for a 4KB xml message.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 21, 2008 3:33 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Don't parse your XML message. Keep it as a BLOB and capture the size of that BLOB.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Glass
PostPosted: Mon Nov 24, 2008 6:37 am    Post subject: Reply with quote

Acolyte

Joined: 02 Mar 2006
Posts: 56

fjb_saper,

Using the BLOB worked. Thanks!
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 » Getting the message size
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.