Class AbstractMessageListenerContainer

    • Field Detail

      • LOG

        protected static final Logger LOG
      • connection

        protected javax.jms.Connection connection
      • destination

        protected javax.jms.Destination destination
      • listenerHandler

        protected javax.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 javax.transaction.TransactionManager transactionManager
      • jndiEnvironment

        protected Properties jndiEnvironment
    • Constructor Detail

      • AbstractMessageListenerContainer

        public AbstractMessageListenerContainer()
    • Method Detail

      • getConnection

        public javax.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
      • setDurableSubscriptionName

        public void setDurableSubscriptionName​(String durableSubscriptionName)
      • setPubSubNoLocal

        public void setPubSubNoLocal​(boolean pubSubNoLocal)
      • setTransactionManager

        public void setTransactionManager​(javax.transaction.TransactionManager transactionManager)
      • setConcurrentConsumers

        public void setConcurrentConsumers​(int concurrentConsumers)
      • getConcurrentConsumers

        public int getConcurrentConsumers()