Author |
Message
|
sap3 |
Posted: Thu Jan 05, 2012 8:40 pm Post subject: Polling in Message Broker |
|
|
Newbie
Joined: 11 Aug 2011 Posts: 9
|
Hi
I have a requirement...that i have to keep polling the message flow for every 120seconds but this i have to do it for multiple threads...
say suppose i'm sending a request to a message flow0
so this same request i have to send again to message flow1
again i have to send same request to message flow2
again i have to send same request to message flow3 like this to till message flow9
and all the above flows should keep continously polling every 120seconds...it should keep doing like that...
All this should be in one message flow project...
so i would like to know is multiple threads concept available in message broker or not? or i'm thinking whether i can accomplish this by using timer nodes?
if anyone have some ideas that will be greately appreciated...
Thank you so much...
Thanks, |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Jan 05, 2012 10:55 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Here we go again.
Message Flows don't run unless there is something for them to do. You can't poll them.
For example,
A message flow with an MQInputNode at the start sits dormant/inactive/idle UNTIL a message is written to the queue defined in the Node Properties AND that message is committed.
Please explain how you can Poll that for data when it is idle?
I do strongly recommend that you and especially whoever is giving you these 'so called requirements' attend some formal training. This will stop you wasting your time trying to fufill requirements that are plainly impossible.
I do know what it is like trying to make broker fit a spec that was written by someone without even a rudimentary understanding of how Broker works. Been there done that, got the 'T-shirt'. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jan 06, 2012 5:17 am Post subject: Re: Polling in Message Broker |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sap3 wrote: |
if anyone have some ideas that will be greately appreciated... |
Push back on the requirement and find out what you actually need to achieve. This sounds a lot like a technical solution written by someone who knows nothing about WMB rather than a design requirement.
Polling message flows? Why would you poll a message flow? Why would you send them a request for any reason other than as a positive attempt to elicit a response? Doesn't make sense. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Fri Jan 06, 2012 5:44 am Post subject: Re: Polling in Message Broker |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
sap3 wrote: |
Hi
I have a requirement...that i have to keep polling the message flow for every 120seconds but this i have to do it for multiple threads...
say suppose i'm sending a request to a message flow0
so this same request i have to send again to message flow1
again i have to send same request to message flow2
again i have to send same request to message flow3 like this to till message flow9
and all the above flows should keep continously polling every 120seconds...it should keep doing like that...
All this should be in one message flow project...
so i would like to know is multiple threads concept available in message broker or not? or i'm thinking whether i can accomplish this by using timer nodes?
if anyone have some ideas that will be greately appreciated...
Thank you so much...
Thanks, |
Sounds like someone was sleeping during the WM663 class. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
adrian_ |
Posted: Fri Jan 06, 2012 6:39 am Post subject: |
|
|
Novice
Joined: 06 Jan 2012 Posts: 13
|
sap3 please explain again (and better) what you are really want to do before someone can give you a solutions. |
|
Back to top |
|
 |
|