com.caucho.jms.jca
Class ListenerEndpoint

java.lang.Object
  extended by com.caucho.jms.jca.ListenerEndpoint
All Implemented Interfaces:
MessageListener, MessageEndpoint

public class ListenerEndpoint
extends java.lang.Object
implements MessageEndpoint, MessageListener

The JMS MessageListener endpoint


Constructor Summary
ListenerEndpoint()
           
 
Method Summary
 void afterDelivery()
          Called by a resource adapter after a message is delivered.
 void beforeDelivery(java.lang.reflect.Method method)
          Called by a resource adapter before a message is delivered.
 void onMessage(Message message)
          Runs the endpoint.
 void release()
          Called when the resource adapter doesn't need a proxy endpoint.
 void setListener(MessageListener listener)
          Sets the listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerEndpoint

public ListenerEndpoint()
Method Detail

setListener

public void setListener(MessageListener listener)
Sets the listener.


beforeDelivery

public void beforeDelivery(java.lang.reflect.Method method)
Called by a resource adapter before a message is delivered.

Specified by:
beforeDelivery in interface MessageEndpoint

afterDelivery

public void afterDelivery()
Called by a resource adapter after a message is delivered.

Specified by:
afterDelivery in interface MessageEndpoint

onMessage

public void onMessage(Message message)
Runs the endpoint.

Specified by:
onMessage in interface MessageListener

release

public void release()
Called when the resource adapter doesn't need a proxy endpoint.

Specified by:
release in interface MessageEndpoint