Steve,
The idea is that any particular client app always uses the same queue on
behalf of a user and therefore the queues dont need to be deleted, they are
just reused. The idea is more for an intranet type application where the
users are employees and therefore the turnover is not particularly high.
The deletion of the queue can then be done as an Admin fcuntion.
Another common way to deal with this is to have an application reply to
queue that is used by all the clients, if performance is a worry then you
can use indexing.
Regards
Tim A
Steve Muller
<[EMAIL PROTECTED]> To: [EMAIL PROTECTED]
Sent by: MQSeries cc:
List Subject: Re: Question about deleting
Perm. Dynamic queues
<MQSERIES@AKH-WIE
N.AC.AT>
27/08/2002 11:33
PM
Please respond to
MQSeries List
Tim, thanks for the input. I like your naming
convention but how would it address the issue of
deleting these PD queues that were not deleted by the
client apps due to sys failure etc? If these queues
were not deleted before the qmgr is recycled, then
they and their persistent msgs will be saved and
restored when qmgr comes back up (exactly like local
queues).
These surviving PD queues cannot be deleted with
MQCLOSE any longer by any application according to the
manuals. You would have to send a PCF message to the
command server to do so. OPENing/Creating these queues
will not be a problem; if they exist, client apps will
do a regular OPEN. I am more concerned about DELETEing
them.
I don t have a problem with coming up a meaningful PD
queue names but have started having second thoughts
about whether using PD queues instead of local queues
is still worth the headache.
> Or for the purposes of access control the generation
> of the permanent
> dynamic queue and its access could be done when a
> new user is created, and
> deleted when the user is removed from the system.
Are you suggesting that Admin could create these
queues ahead of time (i.e. before the client app.
starts) and delete (again by Admin) them if the users
are gone?
We'll have about 200 clients with at least 350 users
(with a shift work). So, create 350 PD queues? I have
been told today that the number of the clients may go
well beyond 500.
I would love to hear the experience of others as well.
Thanks,
Steve
--- Tim Armstrong <[EMAIL PROTECTED]> wrote:
> Ok, here's a different perspective on the overall
> question of reply to
> queues in a request/reply scenario.
>
> Assign each user a permanent dynamic reply queue
> that is used by all apps,
> each app retrieving its messages by message and
> correlation id's, this
> nicely handles the following issues, security of
> visibility to confidential
> information, containing the impact of a rogue app
> that reads messages it
> shouldn't and simplifies the admin tasks related to
> handling dynamic
> queues. An apps code works along these lines MQOPEN
> REPLY.myuser.QUEUE and
> if this fails it then does an MQOPEN on the Model
> queue specifying the name
> REPLY.myuser.QUEUE in the dynamic queue name field.
>
> Or for the purposes of access control the generation
> of the permanent
> dynamic queue and its access could be done when a
> new user is created, and
> deleted when the user is removed from the system.
>
> This sounded a bit wierd the first time I heard it
> but the more I think
> about it the more I like it.
>
> Regards
> Tim A
>
>
>
> "Miller, Dennis"
> <[EMAIL PROTECTED] To:
> [EMAIL PROTECTED]
> OM> cc:
> Sent by: MQSeries
> Subject: Re: Question about deleting Perm. Dynamic
> queues
> List
> <MQSERIES@AKH-WIE
> N.AC.AT>
>
>
> 27/08/2002 03:22
> AM
> Please respond to
> MQSeries List
>
>
>
>
>
> But Steve, the main advantage of persistent
> messages is to survive
> a
> qmgr restart. You go to great lengths for persistent
> replies, then
> undermine
> it by purging the reply queues?????? Also,
> persistence is not a typical
> requirement for request/reply application, so I have
> to question whether
> you
> really need it.
>
> Generally, dynamically creating/deleting
> permanent queues
> introduces
> more headaches than relief. The effort backfires
> because keeping all
> involved parties in-sync on an ongoing basis gets
> too messy. With good
> naming standards, 200 equivalent reply queues should
> not overwhelm the
> administrators. On the other hand, if you really
> want to simplify admin,
> sharing a reply queue among 200 clients is quite
> feasible--especially for
> request/reply apps where the queue depth is
> customarily shallow.
>
>
> > -----Original Message-----
> > From: Steve Muller [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, August 26, 2002 6:27 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Question about deleting Perm.
> Dynamic queues
> >
> > Dennis:
> >
> > Thanks for your reponse. Below, I will explain
> why
> > and how I decided to use PD (Perm. Dyn.) queues
> --I
> > WOULD LIKE ALL THESE pd QUEUES GONE BEFORE MQ
> > SHOT-DOWN-- in order not to cause any headache to
> the
> > MQ Admin guys. Here is the requirement and the
> design
> > to acheive this:
> >
> > Requirement:
> > -------------
> > We'll have about 200 clients (Win2K MQ 5.2) that
> will
> > send mostly persistent requests to the server (we
> > don't know the platform yet) and receive their
> > persistent replies in their perspective reply
> queues.
> >
> > Some of these clients will run almost non stop
> (for
> > days if not weeks or months... due to business
> > req's)and some may stop at the end of the day.
> >
> > Design:
> > -----------
> >
> > I don't want to create 200 regular local queues
> for
> > admin purposes. I also don't want to create say 20
> > local queues each of which to be shared by 10
> clients
> > due to competition for getting replies (based on a
> > correlid) and the fact that failure of one client
> can
> > impact the others in the group. I thought, with
> > separate PD queues I can store both persistent and
> > non-persistant messages. These queues will also be
> > used for sub/pub purposes (Smalltalk sub/pub, not
> MQ).
> > Both the client and the server app will be written
> in
> > Smalltalk.
> >
> > Here is the order or operations:
> >
> > 1. Client app starts and connects to the MQ server
> > 2. Client app subscribes to publications/topics
> > (specifying the PDReplyQ as the reply-to-q)
> > 3. Client sends a request (w/ PDReplyQ as the
> > repl-to-q)
> > 4. Client gets the reply/publication from the
> PDReplyQ
> > 5. Step 3 and 4 are repeated all day long (maybe
> once
> > every 5-10). The rest of the time it will stay
> idle
> > 6. During the idle time the client will do an
> MQGET on
> > the PDReplyQ (say every 2 min) to detect qmgr
> > quiescing
> > 7. Client, just before it stops, closes its queues
> and
> > deletes its PDReplyQ (with purge option on the
> > CLOSE).
> >
> > ===Important: As part of the shut-down process
> > (shutting down the server app or the qmgr): Admin
> will
> > send a message to the server app with MQFB_QUIT;
> and
> > in turn, the server app, before it terminates,
> will
> > send a message to its clients with MQFB_QUIT, to
> stop
> > processing===
> >
> > HOW TO HANDLE ORPHANED PD QUEUES:
> > ---------------------------------
> > Because of the step 7, there won't be any PDReplyQ
> > queues left behind. However, if the client app
> stopped
> > abnormally it will leave its PDReplyQ "undeleted".
> In
> > order to take care of this situation here are Some
> of
> > the options I have in mind:
> >
> > Option A:
> > 1. Clinet will create its own PDReplyQ and let the
> > server app know about it (in MD) during
> Request/reply
> > or pub/sub situation
> > 2. Server app will ping the client app on a
> regular
> > basis (say every 2 min which is same as the
> > time-interval used during idle time by the
> client).
> > The message will have no app data (maybe it will
> have
> > only a user-defined feedback code... I haven't
> given
> > this much thought yet). I know it will increase
> the
> > traffic over the channel but it it can be
> tolerated).
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive