3 Replies Latest reply on Oct 8, 2003 4:04 AM by Eduardo Dela Rosa

    Delete messages from queue

    parthi_10 Newbie

      Hi,

      I have created a queue by adding an entry in the Jbossmq-destinations.xml. Now I start the class which sends the messages to the queue and then i start the class which reads messages from tat queue. Now if i stop the class which reads the messages from the queue, the messages get accumulated in the queue. Now i shut down the jboss server. What happens is tat the messages will still remain in the queue. When i restart the jboss server and the reader class i m able to read the messages from the queue. Now i want to delete the messages in the queue if the appserver is shut down. How do i do this?? Is there any parameter which has to be set in the xml file to do this??

      Thanks and Regards
      Parthiban