• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Message count on Queues

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new to JMS, i am using WebLogic 8.1 SP5, any built in API is available to find message count on specific queue. That means if i pass queue name to weblogic method that should be return message count or any other way to find message count?

Thanks in advance...

Regards,
-Soma
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JMS provides QueueBrowser to browse through the messages. You can ask QueueSession object to create QueueBrowser for specific queue.


Then get an enumeration for all messages as

to browse through the messages.

Nandu
 
SomaSekhar Gondi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nandu,

I am doing same thing now, but this is a performance issue. For example in my queue contains more than 10000 messages, that time i need to iterate all increase the counter.
Any other way to do this...like using message driven beans(MDB�s)...give some idea...

Regards,
-SomaSekhar
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic