Skip to content

Instantly share code, notes, and snippets.

@danielkec
Created November 24, 2020 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkec/199be22aa9f6ee79635de8a94efee883 to your computer and use it in GitHub Desktop.
Save danielkec/199be22aa9f6ee79635de8a94efee883 to your computer and use it in GitHub Desktop.
@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