public class JmsMessageEndpointFactory extends AbstractMessageEndpointFactory
MessageEndpointFactory
interface,
providing transaction management capabilities for a JMS listener object
(e.g. a MessageListener
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 native
ResourceAdapter
instance.
setMessageListener(javax.jms.MessageListener)
,
AbstractMessageEndpointFactory.setTransactionManager(java.lang.Object)
,
JmsMessageEndpointManager
Modifier and Type | Class and Description |
---|---|
static class |
JmsMessageEndpointFactory.JmsResourceException
Internal exception thrown when a ResourceException has been encountered
during the endpoint invocation.
|
AbstractMessageEndpointFactory.AbstractMessageEndpoint
logger
Constructor and Description |
---|
JmsMessageEndpointFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
createEndpoint, createEndpoint, getActivationName, isDeliveryTransacted, setBeanName, setTransactionFactory, setTransactionManager, setTransactionName, setTransactionTimeout
public void setMessageListener(MessageListener messageListener)
protected MessageListener getMessageListener()
protected AbstractMessageEndpointFactory.AbstractMessageEndpoint createEndpointInternal() throws UnavailableException
createEndpointInternal
in class AbstractMessageEndpointFactory
null
)UnavailableException
- if no endpoint is available at present