Author |
Message
|
gakarthik85 |
Posted: Thu Jun 16, 2016 5:32 am Post subject: Please help |
|
|
Newbie
Joined: 16 Jun 2016 Posts: 2
|
Hi,
I want to know if the below can be achieved in IIB version 10.
The request is sent from system A to system B and then response is sent back to System A synchronously. System B can handle only a limited number of data in a single message(say 5 product details per message). But it can handle N number of threads. So, if there is 10 product details sent by system A, two request needs to be sent to System B simultaneously and the response needs to be collected for all 10 products and then sent back to system A.
The catch here is, the number of product details sent from system A is unknown. It can be 10 or 30 or 5 or 50. But the total number of product is 100.
Please let me know if this can be achieved in IIB and if so how this can be achieved. Aggregate nodes cannot be used because the number of products in the request is unknown.
Thanks,
Karthik |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jun 16, 2016 5:41 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What part of the Knowledge Center says it can't be done?
What part says it can be done?
What do the samples show you about how to do things in IIB? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 16, 2016 5:44 am Post subject: Re: Please help |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gakarthik85 wrote: |
Please let me know if this can be achieved in IIB |
Yes.
gakarthik85 wrote: |
if so how this can be achieved. |
Any number of ways. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gakarthik85 |
Posted: Thu Jun 16, 2016 8:08 pm Post subject: |
|
|
Newbie
Joined: 16 Jun 2016 Posts: 2
|
Thank you for the replies Jeff and Vitor. Sorry for being naive. I tried out all the known options to me and all of them are pointing towards invoking System B in a sequential way. Say for example, if we are using Dynamic Aggregation ( which is explained in the example http://www.ibm.com/developerworks/websphere/library/techarticles/1306_chakraborty/1306_chakraborty.html ), it will still invoke System B in batches of 5 per request if I am not wrong. So kindly provide me a hint or a way to achieve this.
Thanks,
Karthik |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jun 17, 2016 4:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gakarthik85 wrote: |
So kindly provide me a hint or a way to achieve this. |
Any one of the following:
- Async Request Node
- Collector Node
- External db
- Global Cache
- Shared Variables
- Java Hash Map
or any of the above in combination to meet your exact needs, or something I've not thought of. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jun 17, 2016 4:44 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There are SOAP and HTTP Asynchronous nodes.
You can not tell some part of a message flow to run in parallel.
If you want to make parallel requests, you need to run another message flow.
If you look at figure 14 in the devWorks article you mention, it shows you how to do this. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
paustin_ours |
Posted: Fri Jun 17, 2016 5:39 am Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
Also next time, please put a more relevant title for your post. |
|
Back to top |
|
 |
|