站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档

MessageEndpointFactory (JBoss J2EE API) - JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档


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

public 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

public 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.