Sonic ESB API

com.sonicsw.xq.adapter
Interface XQMessageListener


public interface XQMessageListener

The XQMessageListener is created by the XQMessageListenerFactory upon receipt, by the XQResourceAdapter, of a message. The onMessage method is called given a reference to the native message.


Method Summary
 java.lang.Object onMessage(java.lang.Object msg, javax.resource.spi.ManagedConnection mc)
          dispatches the message to the listener
 

Method Detail

onMessage

java.lang.Object onMessage(java.lang.Object msg,
                           javax.resource.spi.ManagedConnection mc)
                           throws XQNotDeliveredException
dispatches the message to the listener

Parameters:
msg - the message
mc - a connection to provide transactional capabilities
Throws:
XQNotDeliveredException - thrown when the message should not be acknowledged to the adapter

Sonic ESB API

Copyright © 2001-2013 Aurea, Inc. All Rights Reserved.
HTML formatted on 29-April-2013.