1 Reply Latest reply on Jul 11, 2016 9:10 AM by Mo IC

    Remove a message from JMS Queue (JBoss AS 5.1)

    Mo IC Newbie

      I just started learning about JMS Queues and wanted how I can remove a message from the queue given the JMSMessageID. I just want something like this:


      QueueBrowser queueBrowser = session.createBrowser(queue);


      I know there is nothing like that. Is there anything similar I can do? How does a message actually leave the queue?

      I am using Java 1.6.0_22 and JBoss AS 5.1.


      Thanks in advance!