• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • 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
  • 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: 3321
298
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done and thanks for sharing!
 
I'm gonna teach you a lesson! Start by looking at this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!