繁体   English   中英

检查jms队列是否已启动

[英]Check if the jms queue is up

有没有办法捕获该超时并将其发送回用户? 不知道Apache Camel是否提供开箱即用的功能。
我想测试并警告用户哪些队列正在运行。 这样一来,用户就可以清楚知道应用程序的哪些功能可以正常工作。
我在项目中同时使用SpringApache 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.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM