I have 2 activeMQ brokers with queues and I would like to be able to log incoming ActiveMQ message broker remote address.
After I perform pull consumer receive:
pull_consumer->receive(1000);
and after message arrives I do this:
ActiveMQConnection *amqconn = dynamic_cast<ActiveMQConnection*>(connection);
then try getting remote adress:
amqconn->getTransport().getRemoteAddress().c_str()
but its always empty
I checked for getTransport().isClosed()
and getTransport().isConnected()
and they are not closed and connected
Or is there another way to retrieve this connection information ?