@ComponentProfile(summary="Listen for JMS messages on the specified topic", tag="consumer,jms", recommended=JmsConnection.class) public class PasConsumer extends JmsConsumerImpl
JMS Publish-and-subscribe implementation of AdaptrisMessageConsumer
.
In the adapter configuration file this class is aliased as jms-topic-consumer which is the preferred alternative to the fully qualified classname when building your configuration.
consumer
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
PasConsumer() |
PasConsumer(ConsumeDestination d) |
Modifier and Type | Method and Description |
---|---|
protected javax.jms.MessageConsumer |
createConsumer() |
java.lang.Boolean |
getDurable()
Returns whether this consumer is durable.
|
java.lang.String |
getSubscriptionId()
Returns the subscription ID to use for durable subscriptions.
|
void |
setDurable(java.lang.Boolean b)
Sets whether this consumer is durable.
|
void |
setSubscriptionId(java.lang.String s)
Sets the subscription ID to use for durable subscriptions.
|
close, configuredAcknowledgeMode, configuredCorrelationIdSource, configuredMessageListener, configuredMessageTranslator, currentLogger, currentSession, getAcknowledgeMode, getCorrelationIdSource, getMessageTranslator, init, isManagedTransaction, onMessage, prepare, rollbackTimeout, setAcknowledgeMode, setCorrelationIdSource, setManagedTransaction, setMessageTranslator, start, stop
changeState, getDestination, registerAdaptrisMessageListener, renameThread, requestClose, requestInit, requestStart, requestStop, retrieveAdaptrisMessageListener, retrieveComponentState, setDestination
createName, createQualifier, decode, encode, getEncoder, getIsConfirmation, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isConfirmation, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsConfirmation, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactory
getUniqueId
createName, createQualifier, isConfirmation, isTrackingEndpoint
public PasConsumer()
public PasConsumer(ConsumeDestination d)
protected javax.jms.MessageConsumer createConsumer() throws javax.jms.JMSException, CoreException
createConsumer
in class JmsConsumerImpl
javax.jms.JMSException
CoreException
public void setDurable(java.lang.Boolean b)
Sets whether this consumer is durable.
b
- whether this consumer is durablepublic java.lang.Boolean getDurable()
Returns whether this consumer is durable.
public void setSubscriptionId(java.lang.String s)
Sets the subscription ID to use for durable subscriptions. This must remain constant for the same durable subscription to be accessed each time messages are consumed.
s
- the subscription ID to use for durable subscriptionspublic java.lang.String getSubscriptionId()
Returns the subscription ID to use for durable subscriptions.