1 Reply Latest reply on May 1, 2010 5:54 AM by veitg

    Disabling ExpiryQueue in JBoss 5.1.0




      We're using JBoss 5.1.0 and its standard message queue component. On deployment we create some queues via -service.xml files like so:


      <mbean code="org.jboss.jms.server.destination.QueueService"
            <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>


      It seems that the default ExpiryQueue is always set to "ExpiryQueue" of JBoss. When messages expire, they are moved to that queue. Now

      my question is, how can I disable it so the messages get simply dropped? Until 4.0.4 this seemed the default behavior - AFAIK. Setting ExpiryQueue to an empty string doesn't seem to do the trick - an error concerning mandatory occurs then. Any hints?


      Also there seems the problem that messages get only expired, when a consumer is listening on the queue. Can this be automated with jboss messaging that comes with JBoss 5.1.0?


      Thanks in advance.