How to programmatically configure the kernel bridge and / or JMS?

I want to find a way to configure the main bridge (and, if possible, JMS) between two instances of HornetQ programmatically.

There are easy-to-use tutorials in the HornetQ documentation, but none of them describe how to add a basic bridge to an equation. In addition, the BridgeConfiguration class is available, but it's just a POJO, a placeholder for the configuration itself, and I cannot start it and run it with an instance of HornetQ. Especially, in particular, the definition of connections seems puzzling.

Please, help:)

+5
source share
1 answer

Sorry for this weak answer, I have never tried this myself. But create an instance BrideConfiguration, set its properties and add it to the bridge configuration list.

Configuration.getBridgeConfigurations().add(bridgeConfiguration)

, , .

0

All Articles