2 Replies Latest reply on Feb 23, 2010 5:04 AM by ataylor

    InvalidDestinationException when queue/topic doesnt exist

    ataylor

      The JMS Spec says:

       

      "This exception must be thrown when a destination is either not understood by a provider or is no longer valid."

       

      This to me implies that if the destination doesn't exist it is invalid and we should throw this exception, is this the case. There are quite a few AS tests that test this, typically with temp queues/topics.

       

      If we do need to add this check then it would need to be server side for performance reasons, we dont want to be sending an address query for every send. We could add a flag to throw an exception if the address doesnt exist on send.