git.net

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

How to perform multiple Firebase queries in a Processor on a Camel route?


Hi,

how can multiple queries to Firebase be performed in an Apache Camel Processor, so it waits for all the callbacks and posts the result on the route, which then continues?

I've looked at the implementation in

https://github.com/camel-extra/camel-extra/blob/master/components/camel-firebase/src/main/java/org/apache/camel/component/firebase/FirebaseProducer.java

and tried to combine that with the setup described in

https://www.rubix.nl/blogs/playing-around-camel-asyncprocessor

where the Runnable process uses CompletableFuture's .allOf to combine the asynchronous results from the Firebase API's callbacks, but the route always finishes before callback results come in.


Thanks
/Björn


( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03341.html on line 85
Call Stack
#TimeMemoryFunctionLocation
10.0006363576{main}( ).../msg03341.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03341.html on line 85
Call Stack
#TimeMemoryFunctionLocation
10.0006363576{main}( ).../msg03341.html:0