Oracle Fusion Middleware User Messaging Service 11.1.1.1.0 Java API Reference
E14011-01

oracle.sdp.messaging
Interface MessageListener


public interface MessageListener

The message listener interface. A message listener must implement this interface and register itself to Messaging to asynchronously receive messages.

Since:
11.0.0

Method Summary
 void onMessage(Message message)
          Callback method to receive incoming messages.
 

Method Detail

onMessage

void onMessage(Message message)
               throws ApplicationNotReadyException,
                      MessagingException
Callback method to receive incoming messages.

Parameters:
message - the received Message object.
Throws:
ApplicationNotReadyException - if thrown by the listener, Messaging (the client-side MDB) will attempt to redeliver this message. Thus, an application can throw this exception in situations where it is not yet ready to process messages.
There is a nominal retry interval of a few seconds between redelivery attempts. The number of retry attempts is configurable via the client-side MDB's MaxDeliveryCnt configuration property.
MessagingException

Oracle Fusion Middleware User Messaging Service 11.1.1.1.0 Java API Reference
E14011-01

Copyright © 2009 Oracle and/or its affiliates. All rights reserved.