ccf.destroy();
}
}
+
+ public void sendMessageToDefaultDestination(String msg) {
+ if (jmsTemplate != null) {
+ jmsTemplate.convertAndSend(msg);
+ CachingConnectionFactory ccf = (CachingConnectionFactory) this.jmsTemplate.getConnectionFactory();
+ ccf.destroy();
+ }
+ }
}