Author |
Message
|
Avikal Jain |
Posted: Mon Jul 30, 2007 10:22 am Post subject: qmodel question |
|
|
Apprentice
Joined: 25 Jun 2007 Posts: 39 Location: Pune
|
can we get the message from a dynamic queue |
|
Back to top |
|
 |
Toronto_MQ |
Posted: Mon Jul 30, 2007 10:33 am Post subject: |
|
|
 Master
Joined: 10 Jul 2002 Posts: 263 Location: read my name
|
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 30, 2007 2:23 pm Post subject: Re: qmodel question |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Avikal Jain wrote: |
can we get the message from a dynamic queue |
If you couldn't, what exactly would be the point of it......  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Avikal Jain |
Posted: Tue Jul 31, 2007 5:11 am Post subject: hi vitor |
|
|
Apprentice
Joined: 25 Jun 2007 Posts: 39 Location: Pune
|
yes ofcourse i 've tried to get the mesg but it shows no more mesgs
i also checked the model queue using
dis qmodel(qmodel name) no curdepth parameter is there in output,
but after successfull putting where the msga are going i dunnoo
i checked all the local queues ,nothing is there and i am not using deadq in my qmgr |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 31, 2007 5:41 am Post subject: Re: hi vitor |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Avikal Jain wrote: |
i also checked the model queue using
dis qmodel(qmodel name) no curdepth parameter is there in output,
but after successfull putting where the msga are going i dunnoo
i checked all the local queues ,nothing is there and i am not using deadq in my qmgr |
If you'd actually read the documentation, you'd know that the model queue is what the dynamic queue is created from; it doesn't hold the messages itself!
Your messages are where they're supposed to be, in the dynamic queue created from the model. If it's a temporary dynamic queue then they are lost when the queue goes out of scope. If it's permanent dynamic queue they will be there, but don't forget to devise some means of deleting these queues when you're done! _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 31, 2007 5:41 am Post subject: Re: hi vitor |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Avikal Jain wrote: |
i am not using deadq in my qmgr |
Why not???  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Avikal Jain |
Posted: Tue Jul 31, 2007 5:55 am Post subject: hi vitor |
|
|
Apprentice
Joined: 25 Jun 2007 Posts: 39 Location: Pune
|
actually there is are hell lot of differences between the details thet are being given in sys admin amd app prog guide, and that is y i got confused ............
now the thing is as far is i have got from these details is
when application issues a model queue name to put the mesges a dynamic local queue is generated using the parameters defined in the template of model queue
so very first doubt is ,with wat name the dynamic queue generated is via this template ...is it same as the name of model queue
secondly when we are able to put the meseges in model queue(dynamic queue) y arent be able to get those meseges from tha same
thanx for your kind suggestion pls mention if iam wrong any where...... |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 31, 2007 6:06 am Post subject: Re: hi vitor |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Avikal Jain wrote: |
actually there is are hell lot of differences between the details thet are being given in sys admin amd app prog guide, and that is y i got confused ............ |
Please quote examples, or raise a PMR with the IBM authors. I'm sure they strive to make the documents clearly, and would welcome the feedback. IIRC there's a form included with the PDF ones, but that might be the hard copy. It's been a while...
Avikal Jain wrote: |
so very first doubt is ,with wat name the dynamic queue generated is via this template ...is it same as the name of model queue |
No. Otherwise you'd get a duplicate named object on the queue manager. Try and think it though. The name of the dynamic object is explained in the APG
Avikal Jain wrote: |
secondly when we are able to put the meseges in model queue(dynamic queue) y arent be able to get those meseges from tha same |
Because they're not in the model queue (as I said in my previous post), they're in the dynamic queue where they're supposed to be. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Avikal Jain |
Posted: Tue Jul 31, 2007 7:36 am Post subject: hi vitor |
|
|
Apprentice
Joined: 25 Jun 2007 Posts: 39 Location: Pune
|
i 've gone through intercommunication guide and got something
it is written there as
Model queue objects provide the attributes of a local queue object that can be
created dynamically by an application. Dynamically created queues are
instances of local queues and can hold messages. This book generally refers to
a dynamically created instance of a local queue as a dynamic queue.
After it is created, the dynamic queue can be accessed in the same way as a
manually defined local queue. Applications must send messages to the queue
using its dynamically created name, not the name of the model queue object.
now as you said meseges use to reside in dynamic queues not in model queue(i've got your point)
now can you pls suggest me how can i found that dynamic queue
does naming of dynamic queue follows any convention so as i can look it inside qmgr
can we really use dynamic queues using our amqsput,amqsget utilities
as i 've tried amqsput works but wat sould i do to get them or atleast browse them |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 31, 2007 7:43 am Post subject: Re: hi vitor |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Avikal Jain wrote: |
does naming of dynamic queue follows any convention so as i can look it inside qmgr |
Yes it does. As I said before the APG explains it (please read my posts before asking the same question again) and also how to vary it. Though I would advise you don't - it's like setting message ids. You can, but you shouldn't. Unless you're creating permanent dynamic queues, which have the housekeeping issue I mentioned earlier.
Avikal Jain wrote: |
can we really use dynamic queues using our amqsput,amqsget utilities
as i 've tried amqsput works but wat sould i do to get them or atleast browse them |
Not really; the samples are not written with these in mind. You'll need to modify them as described in the APG. Bear in mind the queue scope; amqsget (or similar) can't read a message from a dynamic queue created by amqsput (or something like) because the queue will go out of scope. This can also make them tricky to find with MQExplorer or similar
I wonder if these queues actually do what you think they do.....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Avikal Jain |
Posted: Tue Jul 31, 2007 7:55 am Post subject: Thank you Vitor |
|
|
Apprentice
Joined: 25 Jun 2007 Posts: 39 Location: Pune
|
yup vitor gone through it and got it completely
but i wonder that significance of model queue are kept with in the scope of appli programming and not for system administration
all a system admin can do is specify the model queue and let mq and application take care of rest
well thanx for your time and help |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 31, 2007 11:53 am Post subject: Re: Thank you Vitor |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Avikal Jain wrote: |
all a system admin can do is specify the model queue and let mq and application take care of rest
|
What else would the admin do?
Glad you've got it sorted. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 31, 2007 8:02 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
As an addendum that's all to often forgotten by your programmers, you need to remind them that only non persistent messages can go to a dynamic (temporary) queue (again that pesky scope thing....)
Any persistent message should be sent to a fixed predefined queue.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|