Active MQ CPP. How does the listener work?

296 Views Asked by At

Active MQ CPP:

When I register a listener for a particular Queue in ActiveMQ-CPP, How does the ActiveMQ server send the message back to the client (when the message is available)? Specifically, does it open a new connection every time to the client to push the message? Is the connection from Server to client controllable (port number, one connection vs. many connections etc)?

Please note that this not about client registering a listener to the server (queue/topic). This is the other way round.

Thank you.

1

There are 1 best solutions below

2
On BEST ANSWER

The client maintains an open connection to the broker. When messages are available for dispatch the broker sends them to the client using this connection. The transport options allow you to configure things on the client connection, see the configuration page.