javax.resource.spi.endpoint
Interface MessageEndpointFactory

All Known Implementing Classes:
JBossMessageEndpointFactory (src)

public interface MessageEndpointFactory

A factory for message end points


Method Summary
 MessageEndpoint (src) createEndpoint(XAResource (src)  resource)
          Creates a message endpoint
 boolean isDeliveryTransacted(java.lang.reflect.Method method)
          Tests whether the delivery is transactional for the given method
 

Method Detail

createEndpoint

public MessageEndpoint (src)  createEndpoint(XAResource (src)  resource)
                               throws UnavailableException (src) 
Creates a message endpoint

Parameters:
resource - the xa resource
Returns:
the message endpoint
Throws:
UnavailableException (src) - a transient failure in the endpoint

isDeliveryTransacted

public boolean isDeliveryTransacted(java.lang.reflect.Method method)
                             throws java.lang.NoSuchMethodException
Tests whether the delivery is transactional for the given method

Parameters:
method - the method to test
Returns:
true for transacted delivery, false otherwise
Throws:
java.lang.NoSuchMethodException - if there is no such method for the endpoint