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 » WebSphere Message Broker (ACE) Support » Total number of messages in a queue using java

Post new topic  Reply to topic
 Total number of messages in a queue using java « View previous topic :: View next topic » 
Author Message
mvs
PostPosted: Wed Jan 09, 2008 5:55 am    Post subject: Total number of messages in a queue using java Reply with quote

Voyager

Joined: 06 Jul 2007
Posts: 85

Hi,
using Java programs, we are able to put and get messages to/from the queue.
using java programs how to find the total number of messages in a queue (depth of the queue)?



Thanks and Regards
MVS
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jan 09, 2008 5:59 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

How is this a Message Broker question?

You don't want to code any business logic that uses the queue depth.

You don't want to write your own monitoring tools. It's not worth the time it will take. The value of a professional tool, properly implemented, is significantly greater than the value of an adhoc tool thrown together with poor requirements.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mvs
PostPosted: Wed Jan 09, 2008 7:04 am    Post subject: Reply with quote

Voyager

Joined: 06 Jul 2007
Posts: 85

Hi Jeff,
Thanks for the info.

MQ -> MessageBroker->MQ

Here have a scenario like users submitting messages in a queue at their end(which is main frame side)
MQ -> MessageBroker->MQ
And keep on asking us to check the message processed successfully at our end or not. Its creating hell for us to check each and every time becuase they dont have access to our queues.

we are planning to write java programs to check is there any messages in failure or dead queue for that particular application.

Thanks and Regards
MVS
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jan 09, 2008 7:09 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mvs wrote:
we are planning to write java programs to check is there any messages in failure or dead queue for that particular application.


Any of the standard monitoring tools will do this. If you can't or won't spend money on those use triggering or a long running task to monitor those queues. Neither of these require finding the queue depth.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
francoisvdm
PostPosted: Thu Apr 17, 2008 5:47 am    Post subject: Reply with quote

Partisan

Joined: 09 Aug 2001
Posts: 332

I've got this requirement now as well....anybody got an easy way to get the depth of a queue from inside a flow?

I know all the bad things about doing this...but guess what, I still do want to it...so please only respond if you do have a solution.



Have fun
_________________
If you do not know the answer or you get the urge to answer with "RTFM" or "Search better in this forum", please refrain from doing so, just move on to the next question. Much appreciated.

Francois van der Merwe
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Apr 17, 2008 5:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can build a PCF message in Broker.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Total number of messages in a queue using java
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.