title: How to set waiting timeout on JmsMessagingTemplate.sendAndReceive
body: <p>I'm using sendAndReceive from JmsMessagingTemplate in an MVC controller but if no reply message is sent it seems to keep waiting on a reply forever. The documentation states that:</p>
  
  <blockquote>
    <p>Returns:
    the reply, possibly null if the message could not be received, for example due to a timeout</p>
  </blockquote>
  
  <p>However I just can't figure out after how long a timeout is given or where to configure this. Can someone explain this to me?</p>
  
  <p><em>FYI: I am not using spring-integration but spring-messaging.</em></p>