类 JmsMessageEndpointFactory
- java.lang.Object
- org.springframework.jca.endpoint.AbstractMessageEndpointFactory
- org.springframework.jms.listener.endpoint.JmsMessageEndpointFactory
- 所有已实现的接口:
MessageEndpointFactory
,Aware
,BeanNameAware
public class JmsMessageEndpointFactory extends AbstractMessageEndpointFactory
JMS-specific implementation of the JCA 1.5MessageEndpointFactory
interface, providing transaction management capabilities for a JMS listener object (e.g. aMessageListener
object).Uses a static endpoint implementation, simply wrapping the specified message listener object and exposing all of its implemented interfaces on the endpoint instance.
Typically used with Spring's
JmsMessageEndpointManager
, but not tied to it. As a consequence, this endpoint factory could also be used with programmatic endpoint management on a nativeResourceAdapter
instance.- 从以下版本开始:
- 2.5
- 作者:
- Juergen Hoeller, Stephane Nicoll
- 另请参阅:
setMessageListener(javax.jms.MessageListener)
,AbstractMessageEndpointFactory.setTransactionManager(java.lang.Object)
,JmsMessageEndpointManager
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
JmsMessageEndpointFactory.JmsResourceException
Internal exception thrown when a ResourceException has been encountered during the endpoint invocation.从类继承的嵌套类/接口 org.springframework.jca.endpoint.AbstractMessageEndpointFactory
AbstractMessageEndpointFactory.AbstractMessageEndpoint
字段概要
从类继承的字段 org.springframework.jca.endpoint.AbstractMessageEndpointFactory
logger
构造器概要
构造器 构造器 说明 JmsMessageEndpointFactory()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected AbstractMessageEndpointFactory.AbstractMessageEndpoint
createEndpointInternal()
Creates a concrete JMS message endpoint, internal to this factory.protected MessageListener
getMessageListener()
Return the JMS MessageListener for this endpoint.void
setMessageListener(MessageListener messageListener)
Set the JMS MessageListener for this endpoint.从类继承的方法 org.springframework.jca.endpoint.AbstractMessageEndpointFactory
createEndpoint, createEndpoint, getActivationName, isDeliveryTransacted, setBeanName, setTransactionFactory, setTransactionManager, setTransactionName, setTransactionTimeout
构造器详细资料
JmsMessageEndpointFactory
public JmsMessageEndpointFactory()
方法详细资料
setMessageListener
public void setMessageListener(MessageListener messageListener)
Set the JMS MessageListener for this endpoint.
getMessageListener
protected MessageListener getMessageListener()
Return the JMS MessageListener for this endpoint.
createEndpointInternal
protected AbstractMessageEndpointFactory.AbstractMessageEndpoint createEndpointInternal() throws UnavailableException
Creates a concrete JMS message endpoint, internal to this factory.- 指定者:
createEndpointInternal
在类中AbstractMessageEndpointFactory
- 返回:
- the actual endpoint instance (never
null
) - 抛出:
UnavailableException
- if no endpoint is available at present