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 » CARDINALITY

Post new topic  Reply to topic
 CARDINALITY « View previous topic :: View next topic » 
Author Message
N
PostPosted: Wed May 14, 2008 2:19 am    Post subject: CARDINALITY Reply with quote

Acolyte

Joined: 21 Jul 2007
Posts: 64

Hi,

Beside using CARDINALITY( InputRoot.*[]); to get the total msg,
anybody had better way of doing this?

As cardinality taking a lot of resources.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed May 14, 2008 2:27 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Cardinality is for telling the number of child elements...

Set OutPutRoot = InputRoot;
ll copy the entire message for you
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
sebastianhirt
PostPosted: Wed May 14, 2008 6:35 am    Post subject: Reply with quote

Yatiri

Joined: 07 Jun 2004
Posts: 620
Location: Germany

What exactly are you trying to achieve?
Back to top
View user's profile Send private message
broker_new
PostPosted: Wed May 14, 2008 7:48 am    Post subject: Reply with quote

Yatiri

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

Cardinality is for telling the number of child elements...

As Cardinality is a performance hit
'N' wants to know is there any way to find the no of child elements.

I don't think there is a way for doing this other than cardinality.
In Worst case scenario we have to loop it and count until the LASTMOVE.
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Wed May 14, 2008 9:06 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

As a friend just pointed out if you are using an index, then the whole array is being navigated to get to your element.

You may be aware that the tree parts you mention are navigated (like InputRoot.XML.Rtag.OtherTag.moreTag is 4 or 5 tasks). So if you have a bunch of operations down the tree, use a REFERENCE.

Better still, figure out how to do what you want by walking the tree with NEXT SIBLING or NEXT CHILD.

Now, I have no idea what the heck the original question was!
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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