Author |
Message
|
lanny boy |
Posted: Tue Sep 07, 2004 2:42 am Post subject: MQGET From within a flow? |
|
|
Voyager
Joined: 24 Nov 2003 Posts: 79 Location: UK
|
Hi
I have an application that needs to be dynamically opened and closed via an MQ message. I have a cron job that will open the app and will get a return message containing a session id which will sit on a queue until I am ready to close the app.
Another cron job will close the app, but it needs the session id to do this. Is it possible to access, (using ESQL), the stored message from within a flow and retrieve the data?
I am just curious if there is an altenative to storing the data in a DB.
I am on V2.1 CSD 06. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 07, 2004 5:11 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It sounds like you need to rethink your entire design. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
lanny boy |
Posted: Tue Sep 07, 2004 5:59 am Post subject: |
|
|
Voyager
Joined: 24 Nov 2003 Posts: 79 Location: UK
|
Thanks for the reply Jeff.
Unfortunately much of the design for this project is out of my control.
The reality is that I need to use a session ID which I have been sent 20 hours previously.
I am simply invstigating whther it is possible to interrogate a queue from within a flow rather than write the sessionID to a database.
Lanny Boy. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 07, 2004 6:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There is an MQGet support pack node. It supplies a custom node that will retrieve messages from a queue and insert them into the message tree where information can be manipulated using ESQL.
It is currently withdrawn, because it is not immediately compatible with version 5.
If you search here for MQGet, you should find a link to the withdrawn support pack. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kirani |
Posted: Tue Sep 07, 2004 10:35 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
How are you communicating with your cron jobs from your Message Flows? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
lanny boy |
Posted: Wed Sep 08, 2004 12:16 am Post subject: |
|
|
Voyager
Joined: 24 Nov 2003 Posts: 79 Location: UK
|
Hi Kiran
All the cron jobs are doing is putting a one word command on a nominated queue (eg 'Open' or 'Close').
Depending on the command I will attempt to retrieve the session ID stored on another queue (or from the database). |
|
Back to top |
|
 |
|