• 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

Delete indvidual messages from JBoss 5.1 internal jms (service integration bus)

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am writing an API to delete messages from Jboss service integration bus. I need to provide methods for deleting individual messages and also all the messages (purge) in the queue.

I tried finding the list of operations available on a queue using JMX. Below is the code I used for getting the list of operations. It has an operation "removeAllMessages" which would delete all the messages in the queue. However, I did not find any operation that would help me delete individual messages from the queue. Also, I found the QueueBrowser API of JMX. But the specification says that the class does not delete messages from the queue.


Please let me know how I can delete individual messages from the queue.
 
Anoop Nair
Ranch Hand
Posts: 70
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solved the issue. I wrote a message reciever for the queue with messageId as the selector.

 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well done and thanks for sharing!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic