Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Incoming("from-jms")
@Acknowledgment(Acknowledgment.Strategy.MANUAL)
public CompletionStage<?> consumeJms(JmsMessage<String> msg) {
System.out.println("JMS says: " + msg.getPayload());
return msg.ack();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment