|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
qMgr.accessQueue => MQRC_OBJECT_IN_USE 2042 |
« View previous topic :: View next topic » |
Author |
Message
|
vinod_sasidharan |
Posted: Fri Aug 06, 2004 4:43 pm Post subject: qMgr.accessQueue => MQRC_OBJECT_IN_USE 2042 |
|
|
Newbie
Joined: 29 Oct 2003 Posts: 9
|
Hi ,
I am new to Mq coding, so please excuse if my question is too stupid.
My requirement is as follows ..
I have to write a daemon which keeps on polling a group of Q and if the number of messages increases > 5 then i need to raise alerts .
But at this point
que1 = qMgr.accessQueue("CPSWASQM1.BRNAHMQM1.LQ.1",MQC.MQOO_INQUIRE , null, null, null);
I get MQRC_OBJECT_IN_USE 2042 , the reason being there is also another daemon which is reading it .....
Now is there any way i can avoid this error .
I just need to currentdepth of the queue even if another app has opened it ......
Is there any way to get the current depth ??
vinod |
|
Back to top |
|
 |
vennela |
Posted: Fri Aug 06, 2004 10:52 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
For what you are trying to do, instead of polling, it is better to use performance events. Look at Websphere MQ Event monitoring manual. |
|
Back to top |
|
 |
vinod_sasidharan |
Posted: Sat Aug 07, 2004 12:36 am Post subject: |
|
|
Newbie
Joined: 29 Oct 2003 Posts: 9
|
Hi Vennala,
My requirement .
I have a clustered environment with 25 Qm and we have three main servers which can be configured as to be the Primary QM for those 25 branches .
Files are moved from branches all over country to these three machines .
Now at these three machines we have a daemon running which keeps polling the below mentioned queues and acvts on the files .
Problem is sometimes , the files gets accumulated > 5 in those queues ..To which we need get alerts and cautioned .
Thats why i planned to develop small daemon which polls these queues and as soon as qdepth > 5 . i send alerts to admins .
Now since those Q are already being used ....this daemons gived 2042 ...
I have heard of some shared parameter .....so that many applications a simultaneously open queues and read its values .i just need Q depth ..
is this never possible ?? |
|
Back to top |
|
 |
oz1ccg |
Posted: Sat Aug 07, 2004 2:28 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Why have you opend the queue using the exclusive option ?
Normally there are no reason for not allowing more than one application to open the queue. If you deny this access you will not (if I remeber correctly) able to browse the queue to see if there are any progress.
Whenever I develop an solution I try to create is non_exclusive, this gives my progress monitor the ability to monitor the activity on the queue. I can use other monitors like Tivoli, Mainview, MO71 etc. aswell.
You could try to change the queue option to allow shared acess (typicly by default the program uses the queues option as defaults.
just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
EddieA |
Posted: Sat Aug 07, 2004 12:31 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
I would also suggest you take a look at the PCF manual. Especially if you are looking at multiple Qs on the same QM. You would only have to do a single inquire to get the information about all of them.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|