Package jakarta.jms

Interface CompletionListener


public interface CompletionListener
A CompletionListener is implemented by the application and may be specified when a message is sent asynchronously.

When the sending of the message is complete, the Jakarta Messaging provider notifies the application by calling the onCompletion(Message) method of the specified completion listener. If the sending if the message fails for any reason, and an exception cannot be thrown by the send method, then the Jakarta Messaging provider calls the onException(Exception) method of the specified completion listener.

Since:
JMS 2.0
Version:
Jakarta Messaging 2.0
See Also: