If the queue is defined as Not Shareable then every open for input will be
exclusive regardless of what the application asks for.
If the queue is defined as Shareable, then you can then you have three
choices open it as MQOO_INPUT_SHARED, MQOO_INPUT_EXCLUSIVE, or
MQOO_INPUT_AS_Q_DEF. Only the MQOO_INPUT_AS_Q_DEF will bother to use the
default input open option on the queue definition.
So with shared you have the option of either specifying in the code, or
deferring to the queue definition's default.
Sounds like your situation will always be exclusive. Therefore an orphaned
svrconn with an outstanding exclusive open can certainly get in the way and
what you describe is not unexpected. Either define the queue as shareable
if that was your intent, or you will need to manage these orphaned svrconn
instances. (Or maybe both)
Rick
|---------+--------------------------------------->
| | Doron J <[EMAIL PROTECTED]> |
| | |
| | Sent by: MQSeries List |
| | <[EMAIL PROTECTED]> |
| | |
| | |
| | |
| | Thursday February 12, 2004 01:54 AM |
| | Please respond to MQSeries List |
| | |
|---------+--------------------------------------->
>----------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: Re: Question regarding MQRC_OBJECT_IN_USE
|
>----------------------------------------------------------------------------------------------------|
The queue is defined with:
Sherability- Not Shareable
Default input Open Option- Exclusive
Are these related (especially the "shareability" option) ? It seems so, but
the interesting thing is that sometimes it (MQOPEN) succeeds and sometimes
it fails. I don't have a solid repro.
Thanks!,
Doron
>From: Emile Kearns <[EMAIL PROTECTED]>
>Reply-To: MQSeries List <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Question regarding MQRC_OBJECT_IN_USE
>Date: Wed, 11 Feb 2004 15:34:09 +0200
>
>Just a simple question, how is the queue defined?
>
>Emile Kearns
>Certified MQSeries Specialist
>IBM Certified System Administrator - Websphere MQ, V5.3
>-----Original Message-----
>From: MQSeries List [mailto:[EMAIL PROTECTED] On Behalf Of Potkay,
>Peter M (PLC, IT)
>Sent: 11 February 2004 03:13 PM
>To: [EMAIL PROTECTED]
>Subject: Re: Question regarding MQRC_OBJECT_IN_USE
>
>Whether the orphaned svrconn process is still hanging around is
irrelevant,
>since it opened the queue with MQOO_INPUT_SHARED. Another process should
be
>able to open the queue as well if it also specifies MQOO_INPUT_SHARED,
>whether the first process is actively running or it crashed.
>
>I think the original question stands: Why can't the second process open
the
>queue?
>
>
>
>-----Original Message-----
>From: Ruzi R [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, February 11, 2004 7:43 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Question regarding MQRC_OBJECT_IN_USE
>
>
>Jonas is right. Setting TCP Keepalive is strongly
>recommended for SVRCONN channels.
>
>Ruzi
>--- Jonas Nyberg <[EMAIL PROTECTED]> wrote:
> > Doron,
> >
> > You probably have a svrconn process on the qmgr that
> > is still running. Try stop and start the svrconn
> > channel. When client programs crash or end without
> > closing and disconnecting from the qmgr you might
> > face
> > this kind of problems.
> >
> > Jonas Nyberg
> > Electrolux IT Solutions - Sweden
> >
> > -----Original Message-----
> > From: Doron J <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Date: Wed, 11 Feb 2004 09:28:00 +0200
> > Subject: Question regarding MQRC_OBJECT_IN_USE
> >
> > Hello,
> >
> > I try to troubleshoot a problem where I open a queue
> > with MQOO_INPUT_SHARED
> > and MQOPEN fails and returns reason code
> > MQRC_OBJECT_IN_USE .
> >
> > Configuration: both client and server Win2000,
> > MQSeries 5.2
> > I run my code on MQSeries client, against the remote
> > MQSeries server.
> > First call is ok. Then my process crash, I run it
> > again and now MQOPEN fail.
> >
> > Any ideas what can be the problem ? or how to
> > troubleshoot it ?
> > Thanks, Doron
> >
> >
>_________________________________________________________________
> > Tired of spam? Get advanced junk mail protection
> > with MSN 8.
> > http://join.msn.com/?page=features/junkmail
> >
> > 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
>
>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
>
>
>This communication, including attachments, is for the exclusive use of
>addressee and may contain proprietary, confidential or privileged
>information. If you are not the intended recipient, any use, copying,
>disclosure, dissemination or distribution is strictly prohibited. If
>you are not the intended recipient, please notify the sender
>immediately by return email and delete this communication and destroy all
>copies.
>
>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
>
>Any views expressed in this message are those of the individual sender,
and
>T-Systems South Africa (Pty) Ltd accepts no liability therefore, except
>where the sender specifically states them to be those of T-Systems South
>Africa (Pty) Ltd. Although this message has been scanned for the possible
>presence of computer viruses prior to despatch, T-Systems South Africa
>(Pty) Ltd cannot be held responsible for any viruses or other material
>transmitted with, or as part of, this message.
>
>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
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
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