ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » qmodel question

Post new topic  Reply to topic
 qmodel question « View previous topic :: View next topic » 
Author Message
Avikal Jain
PostPosted: Mon Jul 30, 2007 10:22 am    Post subject: qmodel question Reply with quote

Apprentice

Joined: 25 Jun 2007
Posts: 39
Location: Pune

can we get the message from a dynamic queue
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Toronto_MQ
PostPosted: Mon Jul 30, 2007 10:33 am    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

Have you tried it?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 30, 2007 2:23 pm    Post subject: Re: qmodel question Reply with quote

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
View user's profile Send private message
Avikal Jain
PostPosted: Tue Jul 31, 2007 5:11 am    Post subject: hi vitor Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
Vitor
PostPosted: Tue Jul 31, 2007 5:41 am    Post subject: Re: hi vitor Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Jul 31, 2007 5:41 am    Post subject: Re: hi vitor Reply with quote

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
View user's profile Send private message
Avikal Jain
PostPosted: Tue Jul 31, 2007 5:55 am    Post subject: hi vitor Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
Vitor
PostPosted: Tue Jul 31, 2007 6:06 am    Post subject: Re: hi vitor Reply with quote

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
View user's profile Send private message
Avikal Jain
PostPosted: Tue Jul 31, 2007 7:36 am    Post subject: hi vitor Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
Vitor
PostPosted: Tue Jul 31, 2007 7:43 am    Post subject: Re: hi vitor Reply with quote

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
View user's profile Send private message
Avikal Jain
PostPosted: Tue Jul 31, 2007 7:55 am    Post subject: Thank you Vitor Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
Vitor
PostPosted: Tue Jul 31, 2007 11:53 am    Post subject: Re: Thank you Vitor Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 31, 2007 8:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » qmodel question
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.