Author |
Message
|
frikkieo |
Posted: Sun Mar 19, 2006 9:36 pm Post subject: How to create temp Dynamic Queues in MB |
|
|
Novice
Joined: 16 Jul 2004 Posts: 13 Location: South Africa
|
Hi All,
I have a requirement where I need to use temporary dynamic queues in a request / reply situation. I searched this forum and nothing tells me how to create and use temporary dynamic queues.
Questions:
1) Have anybody used it?
2) If so, what does the configuration entail to create and read from temp dynamic queues?
Regards
Frikkie |
|
Back to top |
|
 |
elvis_gn |
Posted: Sun Mar 19, 2006 9:47 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi frikkieo,
Search the MQ infocenter...
You can define a Model Queue and define whether it should be a dynamic permanent/temporary queue....and then use this template to create ur dynamic queue during runtime.
Regards. |
|
Back to top |
|
 |
pottas |
Posted: Sun Mar 19, 2006 10:20 pm Post subject: |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
Hi, Frikkie / Elvis,
I have almost the same issue. Here's the scenario:
I have a message that passes through a flow and ends up on a remote queue definition that is a local queue on an AS400 system. At this point, I need to create a temporary dynamic queue (locally) and pass the details to the AS400 system in the 'ReplyToQMgr' and the 'ReplyToQ' parameters in the MQMD.
What I need to do is to create a TDQ either with the use of ESQL in a compute node or some sort of parameter setting on a Node.
I have browsed through the infocenter and Google'd it - and I have found some details on TDQ's, but not exactly 'how' to create it.
Yes, I know you can create a model queue, but I want to create it on the fly... within my flow and then pass this value to AS400.
So, I would appreciate it a lot if you have some sort of more detailed description on this.
Thank you in advance
Jacques |
|
Back to top |
|
 |
frikkieo |
Posted: Sun Mar 19, 2006 10:28 pm Post subject: |
|
|
Novice
Joined: 16 Jul 2004 Posts: 13 Location: South Africa
|
Thanks for the quick response guys. I hve had a quick look through the info center, but agree with Pottas, up to now I did not manage to find a detailed description on how to create the temp dynamic queue and and pass the queue to the node that is supposed to pick up the reply.
If you have done this before please could you share some of your knowledge with the rest of the MB community. |
|
Back to top |
|
 |
elvis_gn |
Posted: Mon Mar 20, 2006 2:10 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi frikkieo/pottas,
MB does not have an option to specify any queue name in the node and have it created in the QM(without that queue name being a model queue)
even for which another new local queue will be created dynamically....
Quote: |
I need to create a temporary dynamic queue (locally) and pass the details to the AS400 system in the 'ReplyToQMgr' and the 'ReplyToQ' parameters in the MQMD. |
You have to simply create a Model Queue once in the QM....use the model queue name as the "ReplyToQ" parameter....
Quote: |
Yes, I know you can create a model queue, but I want to create it on the fly... within my flow and then pass this value to AS400. |
Use a triggered application from the flow(be generating an early output, going to a triggered queue).
The trigger application will create your queue with whatever name you specify in a message to that queue...
Use the same value in the "ReplyToQ" parameter...
Not sure if it will work and
Note: I myself think this is a ******* design.
Regards. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 20, 2006 8:16 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
elvis_gn wrote: |
MB does not have an option to specify any queue name in the node and have it created in the QM(without that queue name being a model queue)
even for which another new local queue will be created dynamically.... |
Weeeeelllll.... I could use MB to create a PCF message for "define qlocal"... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
elvis_gn |
Posted: Mon Mar 20, 2006 8:31 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
jefflowrey wrote: |
elvis_gn wrote: |
MB does not have an option to specify any queue name in the node and have it created in the QM(without that queue name being a model queue)
even for which another new local queue will be created dynamically.... |
Weeeeelllll.... I could use MB to create a PCF message for "define qlocal"... |
Not through the properties of any nodes or ESQL,.....can we
It would then have to be using Java on a custom node....right ?
Regards. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 20, 2006 9:29 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
elvis_gn wrote: |
jefflowrey wrote: |
Weeeeelllll.... I could use MB to create a PCF message for "define qlocal"... |
Not through the properties of any nodes or ESQL,.....can we |
One could build a PCF message using ESQL, yes. It would take a bit of doing, but not a lot...
It would be a bit easier if one built a message set that modelled PCF messages - or at least the message one wanted to send.
But in no way is this a good idea. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
pottas |
Posted: Tue Mar 21, 2006 9:35 pm Post subject: |
|
|
 Disciple
Joined: 27 Oct 2005 Posts: 185 Location: South Africa
|
Thanks for the input, guys. I'll pass this post on to the decision makers... I retrospect - I also think it is a bad idea... there's just too much room for error.
Thanks again - and congrats on an excellent forum!
Jacques |
|
Back to top |
|
 |
|