我有一个apache camel路由我想指定该路由的超时,如果该路由没有完成,那个超时需要引发超时异常。 EQ:
<route id="id"> <from uri="xyz"/> //does some calculation call some other routes. </route>
您可以使用Camel异步API来实现您想要的。看看类似的问题(和解决方案)here。