Class AbstractMessageListenerContainer

java.lang.Object
org.apache.cxf.transport.jms.util.AbstractMessageListenerContainer
All Implemented Interfaces:
JMSListenerContainer
Direct Known Subclasses:
MessageListenerContainer, PollingMessageListenerContainer

public abstract class AbstractMessageListenerContainer extends Object implements JMSListenerContainer
  • Field Details

    • LOG

      protected static final Logger LOG
    • connection

      protected jakarta.jms.Connection connection
    • destination

      protected jakarta.jms.Destination destination
    • listenerHandler

      protected jakarta.jms.MessageListener listenerHandler
    • transacted

      protected boolean transacted
    • acknowledgeMode

      protected int acknowledgeMode
    • messageSelector

      protected String messageSelector
    • running

      protected volatile boolean running
    • durableSubscriptionName

      protected String durableSubscriptionName
    • pubSubNoLocal

      protected boolean pubSubNoLocal
    • transactionManager

      protected jakarta.transaction.TransactionManager transactionManager
    • jndiEnvironment

      protected Properties jndiEnvironment
  • Constructor Details

    • AbstractMessageListenerContainer

      public AbstractMessageListenerContainer()
  • Method Details

    • getConnection

      public jakarta.jms.Connection getConnection()
    • setTransacted

      public void setTransacted(boolean transacted)
    • setAcknowledgeMode

      public void setAcknowledgeMode(int acknowledgeMode)
    • setMessageSelector

      public void setMessageSelector(String messageSelector)
    • getExecutor

      protected Executor getExecutor()
    • setExecutor

      public void setExecutor(Executor executor)
    • setJndiEnvironment

      public void setJndiEnvironment(Properties jndiEnvironment)
    • createInitialContext

      public InitialContext createInitialContext()
      Creates a InitialContext if a JNDI environment has been provided. This is usefull in e.g. weblogic, where interaction with JNDI JMS resources is secured. Be careful not to cache the return value in a non thread local scope.
      Returns:
      an initial context, with the endpoint's JNDI properties, or null if none is provided or if an errur occurs
    • stop

      public void stop()
      Specified by:
      stop in interface JMSListenerContainer
    • setDurableSubscriptionName

      public void setDurableSubscriptionName(String durableSubscriptionName)
    • setPubSubNoLocal

      public void setPubSubNoLocal(boolean pubSubNoLocal)
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface JMSListenerContainer
    • setTransactionManager

      public void setTransactionManager(jakarta.transaction.TransactionManager transactionManager)
    • setConcurrentConsumers

      public void setConcurrentConsumers(int concurrentConsumers)
    • getConcurrentConsumers

      public int getConcurrentConsumers()