I'm not sure, but I suppose the hornetQ will use a separate connection and this is suppressed by configuration of the VM or a firewall.
Where do you run the server and client, which OS? is there a firewall active?
What if you use two real machines?
I'm using the client on a real Win7 64bit OS and the Server on an VBox generated Ubuntu LTS 64bit guest system, both with Java7 64bit, but
after 2 days of configurating, i got it, but i don't understand the "why" to 100%:
When i bind the JBoss to 0.0.0.0 i have to insert the following in standalone-full.xml:
In the connectors of the hornetq-erver in subsystem "messaging":
<param key="host" value="servers own IP-address"/> aka 192.1.....
<param key="port" value="5445"/>
<connector-ref connector-name="remote-jms"/> to the connectors of the RemoteConnectionFactory.
if i start jboss with "-b serversown-ip-adress" aka 192.1...... it works out of the box.