Skip to content

Instantly share code, notes, and snippets.

@albuquerquev
Created March 31, 2011 09:18
Show Gist options
  • Save albuquerquev/896095 to your computer and use it in GitHub Desktop.
Save albuquerquev/896095 to your computer and use it in GitHub Desktop.
Connecting To WebSphere MQ Using Spring JMS And Maven Post - Receiving A Message (http://goo.gl/KQ2rh)
public String readMessage() throws JMSException {
String message = null;
Message msg = jmsTemplate.receive(destination);
if(msg instanceof TextMessage) {
message = ((TextMessage) msg).getText();
}
return message;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment