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

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

Loading…
Cancel
Save