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 » Java compute node

Post new topic  Reply to topic
 Java compute node « View previous topic :: View next topic » 
Author Message
sknaini
PostPosted: Wed Jul 20, 2011 2:12 pm    Post subject: Java compute node Reply with quote

Newbie

Joined: 19 Jul 2011
Posts: 6

<MESSAGES
<MESSAGE>
<REQUEST>
</REQUEST?
<REQUEST>
</REQUEST?
<MESSAGE>
<MESSAGE>
<REQUEST>
</REQUEST?
<REQUEST>
</REQUEST?
<MESSAGE>
<MESSAGE>
<REQUEST>
</REQUEST?
<REQUEST>
</REQUEST?
<MESSAGE>
<MESSAGES/>

I need to find the cardinality of the REQUEST elements

later split the XML into each <MESSAGE/>

Since the message is a large size message can any one give sample for Java compute node.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jul 20, 2011 7:37 pm    Post subject: Re: Java compute node Reply with quote

Grand High Poobah

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

sknaini wrote:

I need to find the cardinality of the REQUEST elements

later split the XML into each <MESSAGE/>

Since the message is a large size message can any one give sample for Java compute node.

Please clarify: which cardinality are you looking for: within the message tags or across message tags...

If you are looking for a cardinality across message tags you are SOL with parsing for big messages...

BTW why would you want to use cardinality when you can use references to walk the tree?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sknaini
PostPosted: Thu Jul 21, 2011 3:51 am    Post subject: Reply with quote

Newbie

Joined: 19 Jul 2011
Posts: 6

I need the total count of <REQUEST> Elements in the whole XML

also it is a large message and I have to split it to each <MESSAGE> and propogate to next queue that too using Java compute node.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jul 21, 2011 4:31 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You would find the answer here:

http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&courseCode=WM663



Sir Vitor says: Training ...!
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
joebuckeye
PostPosted: Thu Jul 21, 2011 4:59 am    Post subject: Reply with quote

Partisan

Joined: 24 Aug 2007
Posts: 365
Location: Columbus, OH

sknaini wrote:
I need the total count of <REQUEST> Elements in the whole XML

also it is a large message and I have to split it to each <MESSAGE> and propogate to next queue that too using Java compute node.


Why Java?

This would be very simple in ESQL.

Just setup a reference to the first REQUEST and then loop until there are no more. You can count them as you loop.
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 » Java compute node
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.