I have just found out that when a client from localhost connects to JBoss, JBossMQ says:
[OILClientIL] ConnectionReceiverOILClient is connecting to: 192.168.0.16:1519
(Please note that 192.168.0.16 is IP of my computer, where JBoss is running, i.e. my localhost).
Now, when a client from a different host attempts to connect to JBoss ( NOT 192.168.0.16 ) it says:
[OILClientIL] ConnectionReceiverOILClient is connecting to: 127.0.0.1:3890
[ClientConsumer:ID3] Could not send messages to a receiver.
java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server
[JMSServer] The connection to client ID3 failed.
I don't have any idea why it tries to connect to localhost, when the client is actually a remote machine....