Created
November 24, 2020 19:45
-
-
Save danielkec/199be22aa9f6ee79635de8a94efee883 to your computer and use it in GitHub Desktop.
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
@Outgoing("to-jms") | |
public PublisherBuilder<String> produceToJms() { | |
return ReactiveStreams.of("test1", "test2") | |
.map(s -> JmsMessage.builder(s) | |
.correlationId(UUID.randomUUID().toString()) | |
.property("stringProp", "cool property") | |
.property("byteProp", 4) | |
.property("intProp", 5) | |
.onAck(() -> System.out.println("Acked!")) | |
.build()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment