javax.resource.spi.endpoint
Interface MessageEndpointFactory


public interface MessageEndpointFactory

A factory for message end points


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

Method Detail

createEndpoint

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

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

isDeliveryTransacted

boolean isDeliveryTransacted(Method method)
                             throws 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:
NoSuchMethodException - if there is no such method for the endpoint


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.