use of org.springframework.jms.core.JmsTemplate in project camel by apache.
the class JmsPollingConsumer method setReceiveTimeout.
protected void setReceiveTimeout(long timeout) {
if (template instanceof JmsTemplate) {
JmsTemplate jmsTemplate = (JmsTemplate) template;
jmsTemplate.setReceiveTimeout(timeout);
} else {
throw new IllegalArgumentException("Cannot set the receiveTimeout property on unknown JmsOperations type: " + template.getClass().getName());
}
}
Aggregations