javax.resource.spi.endpoint
Interface MessageEndpoint


public interface MessageEndpoint

A factory for message end points


Method Summary
 void afterDelivery()
          Invoked after delivery
 void beforeDelivery(java.lang.reflect.Method method)
          Invoked before delivery
 void release()
          Release the endpoint
 

Method Detail

beforeDelivery

public void beforeDelivery(java.lang.reflect.Method method)
                    throws java.lang.NoSuchMethodException,
                           ResourceException (src) 
Invoked before delivery

Parameters:
method - the method on the endpoint
Throws:
java.lang.NoSuchMethodException - when there is no such method
ResourceException (src) - for a generic error
ApplicationServerInternalException - for an error in the application server
java.lang.IllegalStateException - when not in the correct state, eg. before and after delivery are not paired
UnavailableException - when the endpoint is unavailable

afterDelivery

public void afterDelivery()
                   throws ResourceException (src) 
Invoked after delivery

Throws:
ResourceException (src) - for a generic error
ApplicationServerInternalException - for an error in the application server
java.lang.IllegalStateException - when not in the correct state, eg. before and after delivery are not paired
UnavailableException - when the endpoint is unavailable

release

public void release()
Release the endpoint