|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Web services flow design question |
« View previous topic :: View next topic » |
Author |
Message
|
pottas |
Posted: Mon Apr 21, 2008 5:44 am Post subject: Web services flow design question |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
Guys,
I have the following design question around a Web Services flow within Message Broker. Here's the background:
I have a composite service exposed in Message Broker with a number of operations that needs to be split into separate operations that will invoke the various service endpoints on the back-end.
The responses from the back-end will then be merged into the original request that will be sent back to the consumer.
As per jeff's suggestion, I don't need to use aggregation - very good and well - I totally agree with him:
http://www.mqseries.net/phpBB2/viewtopic.php?t=42560&highlight=
So I resorted to the following flow design:
HTTPInput -->
Compute (splitting the operations into separate services) -->
HTTPRequest Nodes (to call the individual back-end operations and putting the responses into my Environment tree, under WebResponse1, WebResponse2, etc...) -->
Compute (to merge the resulting data into the response that will be sent back to the consumer) -->
HTTPReply Node to build a composite reply back to the consumer.
So here comes my question: Every HTTPRequest I make to the Host must build the output to my Environment tree. So I added a (dummy) Compute Node after each HTTPRequest Node and return a 'false'. Once the last HTTPRequest Node has executed, I build my Response from my Environment tree.
Is this the way to go? Is this a (at least fairly) good design, is there another way of doing it - if so, please share... |
|
Back to top |
|
 |
AkankshA |
Posted: Mon Apr 21, 2008 8:38 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
seems good 2 me...
 _________________ Cheers |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|