I tried this, however after after restarting the gateway, it stops consuming any new messages.
SolConnectionFactory connFactory =
(SolConnectionFactory) msgListenerContainer.getConnectionFactory();
jmsInboundGateway.stop();
connFactory.setHost(newInboundHost);
jmsInboundGateway.start();