pull/5289/head
Stephane Nicoll 9 years ago
parent bfa9ae13e7
commit 360caf3d97

@ -63,11 +63,13 @@ public class JmsAutoConfiguration {
public JmsTemplate jmsTemplate() {
JmsTemplate jmsTemplate = new JmsTemplate(this.connectionFactory);
jmsTemplate.setPubSubDomain(this.properties.isPubSubDomain());
if (this.destinationResolver != null) {
jmsTemplate.setDestinationResolver(this.destinationResolver.getIfUnique());
DestinationResolver destinationResolver = this.destinationResolver.getIfUnique();
if (destinationResolver != null) {
jmsTemplate.setDestinationResolver(destinationResolver);
}
if (this.messageConverter != null) {
jmsTemplate.setMessageConverter(this.messageConverter.getIfUnique());
MessageConverter messageConverter = this.messageConverter.getIfUnique();
if (messageConverter != null) {
jmsTemplate.setMessageConverter(messageConverter);
}
return jmsTemplate;
}

Loading…
Cancel
Save