Created
March 31, 2011 09:16
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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