有没有办法赶上超时并将其发回给用户?
不确定Apache Camel是否提供了开箱即用的功能。
我想测试并警告用户哪些队列已启动并正在运行。因此,用户将清楚该应用程序的哪些功能将起作用
我在项目中同时使用Spring
和Apache Camel
。
答案 0 :(得分:1)
啊!我发现。 Camel有一个开箱即用的解决方案。
Camel 2.1: Specifies whether to test the connection on startup. This ensures that when Camel starts that all the JMS consumers have a valid connection to the JMS broker. If a connection cannot be granted then Camel throws an exception on startup. This ensures that Camel is not started with failed connections. From Camel 2.8 onwards also the JMS producers is tested as well.