File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Delete indvidual messages from JBoss 5.1 internal jms (service integration bus) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Delete indvidual messages from JBoss 5.1 internal jms (service integration bus)" Watch "Delete indvidual messages from JBoss 5.1 internal jms (service integration bus)" New topic
Author

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

Anoop Nair
Ranch Hand

Joined: Oct 29, 2008
Posts: 70
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

Joined: Oct 29, 2008
Posts: 70
Solved the issue. I wrote a message reciever for the queue with messageId as the selector.

Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1529
    
  22

Well done and thanks for sharing!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Delete indvidual messages from JBoss 5.1 internal jms (service integration bus)
 
Similar Threads
JMS with JBOSS 5- consumer not picking up messages sometimes
another jmx/jboss question - abt dynamic mbeans and accessing properties file
Problem Invoking MDB from MBean in JBOSS4.0.5GA
QuartzDesk 1.3.0 Released
JMS DestinationManager Not Yet Installed