[ https://issues.apache.org/jira/browse/CAMEL-14381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17847640#comment-17847640 ]
Claus Ibsen commented on CAMEL-14381: ------------------------------------- There is https://smallrye.io/smallrye-reactive-messaging/smallrye-reactive-messaging/3.4/camel/camel.html > create a camel-mutiny component > ------------------------------- > > Key: CAMEL-14381 > URL: https://issues.apache.org/jira/browse/CAMEL-14381 > Project: Camel > Issue Type: Improvement > Reporter: Luca Burgazzoli > Priority: Major > Fix For: Future > > > We should create a mutiny component, similar to camel-reactive-streams > https://github.com/smallrye/smallrye-mutiny > {code:java} > CamelMutiny.on(context) > .toMulti(servicenow().table("incident").max(100)) > .then(m -> doSomething(m)) > .await().indefinitely(); > {code} > In Quarkus, we can nicely integrate camel into reactive messaging, like: > {code:java} > @Inject > CamelMutiny mutiny; > @Outgoing > Multi<Whatever> fromEndpoint() { > return mutiny.toMulti(servicenow().table("incident").max(100)); > } > @Outgoing > Multi<Whatever> fromEndpointURI() { > return mutiny.toMulti("servicenow?table=incident"); > } > @Incoming > void toEndpoint(Multi<Item> items) { > return mutiny.subscribeTo(items) > .with(servicenow().table("incident").max(100).async()); > } > @Incoming > void toEndpointURI(Multi<Item> items) { > return mutiny.subscribeTo(items) > .with(s"servicenow?table=incident"); > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)