Skip to content

Instantly share code, notes, and snippets.

@albuquerquev
Created March 31, 2011 09:16
Show Gist options
  • Save albuquerquev/896093 to your computer and use it in GitHub Desktop.
Save albuquerquev/896093 to your computer and use it in GitHub Desktop.
Connecting To WebSphere MQ Using Spring JMS And Maven Post - Sending A Message (http://goo.gl/KQ2rh)
public void sendMessage(final String text) {
jmsTemplate.send(destination, new MessageCreator() {
public Message createMessage(Session session) throws JMSException {
return session.createTextMessage(text);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment