I’m using HornetQ in an embedded configuration with the Configuration object itself created programatically. The application supports dynamic address creation.
I’d like to be able to set certain options when new addresses are created: page file use, maximum page file size, memory threshold for paging. According to the HornetQ documentation, this needs to be done per-address.
I’ve tried updating my configuration object with the settings for the new address, but the server (which has already been started) does not use these new settings.
Is there a way to tell the server about per-address settings once it has started?
Alternatively, can I tell the server to automatically page for all addresses before I start it?
found the answer shortly after posting: you can use the paging manager for the embedded server:
Alternatively the settings for all addresses can be set on the configuration object (based on this SO answer):