[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

call async bean problem

Hi camel riders,

I have a problem with a route which needs to call a bean but the bean itself is async (rxjava2)

My route is created in a vertx verticle using eventbus bridge.

my route looks like:


    .bean("myProcessor", "process")


Now the process method uses vertx webClient async (rxjava2) to call a web endpoint and then sets the body of the exchange to the result of the call.

But of cause this does not block the method itself which leads to the route already continue while the process method does not really finish.

Is there a solution that I can "wait" for async methods to finish?

Best regards,