Skip to content

Commit

Permalink
Make sure the stream is there for all message acks (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
2m committed Aug 7, 2018
1 parent ca97753 commit d325017
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -491,13 +491,13 @@ public void publishAndConsumeJmsTextMessagesWithClientAcknowledgement() throws E
// #run-jms-source-with-ack
CompletionStage<List<String>> result =
jmsSource
.take(msgsIn.size())
.map(
message -> {
String text = ((ActiveMQTextMessage) message).getText();
message.acknowledge();
return text;
})
.take(msgsIn.size())
.runWith(Sink.seq(), materializer);
// #run-jms-source-with-ack

Expand Down

0 comments on commit d325017

Please sign in to comment.