Lukyanov Mikhail
Lukyanov Mikhail

Reputation: 525

Add acceptor and run it without reboot broker

I have embedded Artemis broker version 2.16.0.

Is there a way to add an acceptor and run it without having to reboot the broker?

For example, it is possible to create a queue or address in ActiveMQServerControl.

Or maybe I can add it to the broker.xml and then restart some services and the acceptor starts.

Upvotes: 0

Views: 305

Answers (1)

Justin Bertram
Justin Bertram

Reputation: 35123

Yes, you can add an acceptor to an embedded broker at runtime and start it. Use something like this:

ActiveMQServer server;
...
server.getRemotingService().createAcceptor("myAcceptor", "tcp://127.0.0.1:61617").start();

It is possible to add/change certain things in broker.xml at runtime but an acceptor is not one of them. See the documentation for more details on that.

Upvotes: 1

Related Questions