Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Current broker health checker in the WS uses Camel's producer to send JMS pings to itself. This producer is optimized to use Connection factory and reuse existing connections. Although this is efficient, it does not test an important scenario where a broker keeps serving existing connections but refuses to accept new ones.
So to test broker viability the health checker should create new broker connection for every ping. Spring's JmsTemplate provides such function. Modify Camel route in WebServerConfiguration code to not publish pings. This route should continue to run on the timer but the ping should be dispatched by new code in WebServerStateProcessor.process().
This code will use JmsTemplate to publish WebServerStateDuccEvent to the WS topic