|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
HTTP Request in Atomic mode |
« View previous topic :: View next topic » |
Author |
Message
|
WBI_User21 |
Posted: Tue Jan 01, 2008 8:28 pm Post subject: HTTP Request in Atomic mode |
|
|
 Voyager
Joined: 12 Jun 2007 Posts: 98
|
Hi MBians,
Scenario:
Flow whose source is MQ, which constructs a soap xml msg from input xml and does HTTP Post through HTTP Request node.
Flow is deployed with additional instances set to 2/(more than 2).
I had several shared variables in my flow which controls HTTP Request.
Is there is any way to do HTTP post with HTTP Request node in Atomic mode (as I can't put HTTP Request node in atomic block)
Thanks in advance.. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 02, 2008 5:14 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
HTTP is a synchronous protocol.
The HTTPRequest node will always return the HTTP reply to the same instance of the flow that made the call.
Is this what you mean? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
WBI_User21 |
Posted: Wed Jan 02, 2008 8:09 pm Post subject: |
|
|
 Voyager
Joined: 12 Jun 2007 Posts: 98
|
Yes, I agree, But that is not problem.
But , when a thread is waiting for HTTP Response the other thread is writing to certain shared variables which is in atomic. Is there any way to include the writing to shared variables ,make a HTTP Request and get HTTPResponse in atomic block
thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jan 03, 2008 12:22 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Aha.
I see now.
No, I don't think you can do this directly.
You can maybe set an atomic flag, that says "thread is waiting for HTTPRequest", and use this as a mutex. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|