Fix JMS and JMX module to the latest SF

* Fix `ControlBusParserTests` test to pass `Object.class` to the
`MessageConverter` since we can't use `null` there any more
* Fix `JmsOutboundGateway` for empty string for the
`replyDestinationName` since we can't pass `null` there any more
This commit is contained in:
Artem Bilan
2017-06-07 14:34:01 -04:00
parent 2670a2872e
commit 45ae138091
2 changed files with 11 additions and 7 deletions

View File

@@ -600,6 +600,10 @@ public class JmsOutboundGateway extends AbstractReplyProducingMessageHandler imp
if (StringUtils.hasText(this.replyDestinationName)) {
container.setDestinationName(this.replyDestinationName);
}
else {
// to be resolved to the TemporaryQueue
container.setDestinationName("");
}
if (this.destinationResolver != null) {
container.setDestinationResolver(this.destinationResolver);
}
@@ -1399,7 +1403,7 @@ public class JmsOutboundGateway extends AbstractReplyProducingMessageHandler imp
@Override
protected String getDestinationDescription() {
if (this.replyDestination instanceof TemporaryQueue) {
return "Temporary queue:" + this.replyDestination.toString();
return "Temporary queue: " + this.replyDestination.toString();
}
else if (super.getDestination() != null) {
try {