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 » IBM MQ Java / JMS » Message count in Standard JMS Queue

Post new topic  Reply to topic
 Message count in Standard JMS Queue « View previous topic :: View next topic » 
Author Message
balareddy
PostPosted: Tue Feb 21, 2006 3:55 am    Post subject: Message count in Standard JMS Queue Reply with quote

Acolyte

Joined: 06 Feb 2006
Posts: 54

Hi,

How to get message count in JMS Queue with Standard JMS. I am not using any application server. it is just a sample of standard JMS with message store can be either AQ or MQ or something esle.

in JMS, QueueSession has createSender(),createReceiver() and QueeuBrowse() methods to get/put/browse messages in Queue. With Browse option we can get count with getEnumeration() method. But it takes time if Queue has 1000 msgs.


If i wanted show msg count in each Queue( suppose i have 20 Queues) frequently in a time interval(example.. every 15 seconds) , what have to do???

pls help me out ....
[/b]
_________________
bala
Back to top
View user's profile Send private message AIM Address
fjb_saper
PostPosted: Tue Feb 21, 2006 4:00 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Get the MS0B support pack and use pcf messages to get the information.

This would only be good for a monitoring app as the message count by itself is quite meaningless. Messages that are not in a gettable state are included in the count.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
balareddy
PostPosted: Tue Feb 21, 2006 4:15 am    Post subject: Reply with quote

Acolyte

Joined: 06 Feb 2006
Posts: 54

fjb_saper wrote:
Get the MS0B support pack and use pcf messages to get the information.

This would only be good for a monitoring app as the message count by itself is quite meaningless. Messages that are not in a gettable state are included in the count.

Enjoy



I am using standard JMS accessing MQ Queue(machine B) with JNDI from different machine(machine A). But MS0B performs administration tasks at MQ server side(machine B).

In my application(machine A) i have to display msg count. it is for monitoring only but it has to be displayed from program(machine A).
_________________
bala
Back to top
View user's profile Send private message AIM Address
fjb_saper
PostPosted: Tue Feb 21, 2006 4:24 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

So what's the problem?
You can't access the SYSTEM.COMMAND.QUEUE on the other qmgr?
You can't move the content of the PCF message to a bytes message?
You can't move the content of a bytes message to a pcf message?
You don't have default paths between the 2 qmgrs ?
You can't set a reply to queue on your messages ?

Get to work!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Tue Feb 21, 2006 10:55 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
But MS0B performs administration tasks at MQ server side(machine B)

Because that's where all the queues are. You are connecting to that server as a client, either for this monitoring, or as your JMS application. No difference.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » IBM MQ Java / JMS » Message count in Standard JMS Queue
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.