2 Replies Latest reply on Jun 23, 2008 8:51 AM by Martin Vecera

    How to undeploy queue for it not to leave a row in JBM_POSTO

    Martin Vecera Novice

      Recently I met http://jira.jboss.org/jira/browse/JBMESSAGING-1235 - it is not possible to deploy a queue, undeploy it and deploy it with different clustered attribute. The workaround says "remove the row from JBM_POSTOFFICE table".

      Why is not the row deleted automatically on undeploy?
      As I can see in org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.internalRemoveBinding(...)
      around line 1916:

      if (queue.isRecoverable()) {
       //Need to remove from db too
       deleteBindingFromStorage(queue);
      }
      

      the line should be deleted if isRecoverable() returns true. Then it should be possible to deploy a queue with the same name and different value of clustered attribute, correct? Under what conditions is the queue recoverable?