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 » Appending in XML

Post new topic  Reply to topic
 Appending in XML « View previous topic :: View next topic » 
Author Message
kt76
PostPosted: Wed Feb 04, 2004 9:53 pm    Post subject: Appending in XML Reply with quote

Acolyte

Joined: 18 Jan 2004
Posts: 52

I have the following requirement.

3 messages come in sequence. The first 2 message payloads i save in database and when the 3rd one arrives i need to combine this message and the 2 saved in db to a common output XML. How can i achieve this
Back to top
View user's profile Send private message
wooda
PostPosted: Thu Feb 05, 2004 7:22 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

Well there are several ways to achieve this.

And this poses many questions which your requirement does not answer.

Basically you will use a compute node to inspect the incoming message.
The compute will also inspect the database and insert/extract messages as necessary. And the compute node can also build your combined output message when all 3 messages have been received.

This will involve 3 entirely separate message flow threads one after the other. So the only place persistant information will be held is the database.

So you have to know that you have all three before trying to build the output XML message.

Now some questions that need answering are :
How do know which is the 3rd message and if you have all 3?
Are they guarenteed to arrive in a certain order ?
Are each group of messages linked in someway? So you can be sure you have 3 from the correct group and not another group.

without more specific detailed requirements then it's hard to give a more detailed response.
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Thu Feb 05, 2004 8:31 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Have you considered using aggregate nodes to take care of the details here? (See chapter 6 in the 2.1 Control Center book.)

Cheers,
Vicky
Back to top
View user's profile Send private message
wooda
PostPosted: Thu Feb 05, 2004 8:56 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

I thought you could only use aggregate nodes to aggregate messages if you had also fanned out corresponding messages within another broker flow using aggregate nodes.

Please correct me if I am wrong.

kt76 - In other words aggregation nodes are worth a look to see they can be used in the design of the the whole business process. And if they can then this may make life easier for you. But not applicable in isolation to this case described here. It will require changes elsewhere.
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 » Appending in XML
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.