title: How to delay a JMS message in queue before a listener receives it using camel?
body: <p>I am trying to delay a message to be in queue for few seconds.
  But when I use camel delay option, it is not delaying in queue, instead it is immediately consumed, and delaying in the route path.
  How can we delay messages so that they will be there in queue for few seconds?</p>
  
  <p>My spring with camel configuration looks like below.</p>
  
  <p>
          
          
      </p>
  
  <pre><code>&lt;bean id="jms" class="org.apache.camel.component.jms.JmsComponent"&gt;
      &lt;property name="connectionFactory" ref="jmsConnectionFactory" /&gt;
  &lt;/bean&gt;
  
  &lt;camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring"&gt;  
  
      &lt;route id="routeOne" delayer="10000"&gt;               
          &lt;from uri="jms://queueone?concurrentConsumers=1"/&gt;          
          &lt;log message="routeOne incoming message ${body}"/&gt;              
          &lt;delay&gt;&lt;constant&gt;30000&lt;/constant&gt;&lt;/delay&gt;                       
          &lt;process ref="loggerProcessor"/&gt;                        
      &lt;/route&gt;
  
  &lt;/camelContext&gt; 
  
  &lt;bean id="loggerProcessor" name="loggerProcessor" class="emh.LoggerProcessor"/&gt;
  </code></pre>