Author |
Message
|
shalini123 |
Posted: Mon Dec 08, 2003 1:56 pm Post subject: Multiple messages |
|
|
Apprentice
Joined: 03 Dec 2003 Posts: 34
|
Hi,
We have the foll: requirment
1)Need to search something in db and retun results
2)Search goes thru WMQI.
1) Send search param, receive some results.
2) based on result returned, hit db agian and receive some result
3)Aggregate the two and retunr back
Can anyone suggest how this message flow should be configured |
|
Back to top |
|
 |
aninair |
Posted: Mon Dec 08, 2003 11:15 pm Post subject: |
|
|
 Novice
Joined: 30 Oct 2002 Posts: 10
|
Hi
You can have input node-> computenode->filternode->computenode->outputnode kind of message flow.
1) Receive xml message containing paramaters u want to check in DB2
Set Input Node-> default to XML (easier way) or create message set which will understand ur xml message and give the details of it in default option.
2) In compute node write a query based on the parameters sent and update ur DB table , if required.
3) You can use filter or compute node to do next checkup and hit the DB2 again based on the results.
regards
Anita Nair _________________ anita nair |
|
Back to top |
|
 |
shalini123 |
Posted: Tue Dec 09, 2003 6:56 am Post subject: Multiple message question- urgent |
|
|
Apprentice
Joined: 03 Dec 2003 Posts: 34
|
Im not clear if what you mentioned wil work
scenario is
Input node recived an XML. Compute node transfoems and gives it to output node.
output node returns back some data . Based on one parameter of that data (Data 1), i need ot hit database agian and retrieve some more data.(Data 2). Now i need to combine data 1 and data2 and return back as reply.
How can this be achieved. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Dec 09, 2003 7:02 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Look at the documentation for the Aggregate nodes in the Help available from the Control Center.
Look also at the Aggregation scenario in the redbook "Developing Solutions with Websphere MQ Integrator". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
EddieA |
Posted: Tue Dec 09, 2003 8:35 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Or 2 flows. First one does the initial lookups, and sends message out.
Second one gets the reply back, does more lookups and then sends back reply to originator.
You may have to store things in a DB between the flows, if the second one needs to set a return message ID/correlation ID based off the original message.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|