I am trying to configure JBoss HornetQ to receive messages, into a VM.
I create a user with guest role to test it.
I configured standalone.xml in my VM:
<http-connector name="http-connector" socket-binding="http">
<http-connector name="http-connector-throughput" socket-binding="http">
<in-vm-connector name="in-vm" server-id="0"/>
<http-acceptor http-listener="default" name="http-acceptor"/>
<http-acceptor http-listener="default" name="http-acceptor-throughput">
<in-vm-acceptor name="in-vm" server-id="0"/>
I tried to connect from a remote, and it fails.
Caused by: HornetQNotConnectedException[errorType=NOT_CONNECTED message=HQ119007: Cannot connect to server(s). Tried with all available servers.]
It appears your using some sort of port translation when accessing HornetQ when outside the VM. If that's true then my guess is that the "http-connector" which your RemoteConnectionFactory is configured to use is pointing to the wrong port from the remote client's perspective.