linktech1 commented on issue #4177:
URL: https://github.com/apache/camel-quarkus/issues/4177#issuecomment-1284159982
What I am really looking for is Camel DSL support for the Quarkus reactive
components (Reasteasy Reactive JAX-RS, Resteasy Reactive client, reactive SQL
clients, reactive nosql database, etc) that enable our teams to create fully
noblocking services that can be run on the vertx event loop without creating
extra unneeded threads.
Our goal is to enable our development community easily move between
developing Quarkus/MicroProfile and Camel Quarkus reactive services.
Currently I have to use the above Quarkus components directly creating a
mixed programming model. Below I have to use Quarkus Resteasy Reactive
controller to provide the REST API then call the Camel route via a
producerTemplate instead of being able to use Camel DSL
@ApplicationScoped
@Path("/movie/{index}")
public class ResteasyReactive {
private static final Logger LOG =
LoggerFactory.getLogger(ResteasyReactive.class);
@Inject
ProducerTemplate producerTemplate;
@GET
@Produces(MediaType.APPLICATION_JSON)
@Fallback(ResourceFallbackHandler.class)
public Uni<Response> movie(@RestPath String index)
{
LOG.info("Calling movie");
Uni<Response> uniResponse = producerTemplate.requestBodyAndHeader(
"direct:multicast", null, "index", index, Uni.class);
LOG.info("Movie Response: " + uniResponse);
return uniResponse;
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]