Package jakarta.jms

Interface CompletionListener

    • Method Detail

      • onCompletion

        void onCompletion​(Message message)
        Notifies the application that the message has been successfully sent
        Parameters:
        message - the message that was sent.
      • onException

        void onException​(Message message,
                         Exception exception)
        Notifies user that the specified exception was thrown while attempting to send the specified message. If an exception occurs it is undefined whether or not the message was successfully sent.
        Parameters:
        message - the message that was sent.
        exception - the exception