2013-04-22 103 views
0

有沒有辦法捕捉超時並將其發回給用戶? 不確定Apache Camel是否提供了一些開箱即用的功能。
我想測試並警告用戶哪些隊列已啓動並正在運行。這樣用戶就能清楚地知道應用程序的哪些功能可以工作。
我在我的項目中同時使用了SpringApache Camel檢查jms隊列是否啓動

回答

1

啊!我發現。駱駝有一個開箱即用的解決方案。

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.