Class SimpleMessageListenerContainer

    • Constructor Detail

      • SimpleMessageListenerContainer

        public SimpleMessageListenerContainer​(SjmsEndpoint endpoint)
    • Method Detail

      • getClientId

        public String getClientId()
      • setClientId

        public void setClientId​(String clientId)
      • getDestinationName

        public String getDestinationName()
      • setDestinationName

        public void setDestinationName​(String destinationName)
      • setDestinationCreationStrategy

        public void setDestinationCreationStrategy​(DestinationCreationStrategy destinationCreationStrategy)
      • getConcurrentConsumers

        public int getConcurrentConsumers()
      • setConcurrentConsumers

        public void setConcurrentConsumers​(int concurrentConsumers)
      • afterPropertiesConfigured

        public void afterPropertiesConfigured​(org.apache.camel.CamelContext camelContext)
        Specified by:
        afterPropertiesConfigured in interface org.apache.camel.AfterPropertiesConfigured
      • configureConsumer

        protected void configureConsumer​(javax.jms.MessageConsumer consumer,
                                         javax.jms.Session session)
                                  throws Exception
        Throws:
        Exception
      • onException

        public void onException​(javax.jms.JMSException exception)
        Specified by:
        onException in interface javax.jms.ExceptionListener
      • recoverConnection

        protected boolean recoverConnection​(org.apache.camel.util.backoff.BackOffTimer.Task task)
                                     throws Exception
        Throws:
        Exception
      • scheduleConnectionRecovery

        protected void scheduleConnectionRecovery()
      • doStart

        protected void doStart()
                        throws Exception
        Overrides:
        doStart in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.service.BaseService
        Throws:
        Exception
      • createSession

        protected javax.jms.Session createSession​(javax.jms.Connection connection,
                                                  SjmsEndpoint endpoint)
                                           throws Exception
        Throws:
        Exception
      • createMessageConsumer

        protected javax.jms.MessageConsumer createMessageConsumer​(javax.jms.Session session)
                                                           throws Exception
        Throws:
        Exception
      • stopConsumers

        protected void stopConsumers()
      • refreshConnection

        protected final void refreshConnection()
                                        throws Exception
        Throws:
        Exception
      • stopConnection

        protected void stopConnection()