|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个 CLASS | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.resource.spi.endpoint Interface MessageEndpointFactory
public interface MessageEndpointFactory
This serves as a factory for creating message endpoints.
- 版本:
- 1.0
- 作者:
- Ram Jeyaraman
方法摘要 | |
---|---|
MessageEndpoint |
createEndpoint(XAResource xaResource)
This is used to create a message endpoint. |
boolean |
isDeliveryTransacted(Method method)
This is used to find out whether message deliveries to a target method on a message listener interface that is implemented by a message endpoint will be transacted or not. |
方法详细信息 |
---|
createEndpoint
MessageEndpoint createEndpoint(XAResource xaResource) throws UnavailableException
- This is used to create a message endpoint. The message endpoint is
expected to implement the correct message listener type.
- 参数:
xaResource
- an optionalXAResource
instance used to get transaction notifications when the message delivery is transacted.- 返回:
- a message endpoint instance.
- 抛出异常:
UnavailableException
- indicates a transient failure in creating a message endpoint. Subsequent attempts to create a message endpoint might succeed.
isDeliveryTransacted
boolean isDeliveryTransacted(Method method) throws NoSuchMethodException
- This is used to find out whether message deliveries to a target method
on a message listener interface that is implemented by a message
endpoint will be transacted or not.
The message endpoint may indicate its transacted delivery preferences
(at a per method level) through its deployment descriptor. The message
delivery preferences must not change during the lifetime of a
message endpoint.
- 参数:
method
- description of a target method. This information about the intended target method allows an application server to find out whether the target method call will be transacted or not.- 返回:
- true, if message endpoint requires transacted message delivery.
- 抛出异常:
NoSuchMethodException
- indicates that the specified method does not exist on the target endpoint.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个 CLASS | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.