I am trying to write a simple JMS client that sends a message to the queue. The problem is that the program halts on retrieving the "connectionfactory" from server through jndi.
I get this in the console when I execute the program..
javax.naming.CommunicationException: Could not obtain connection to any of these urls: casper.rd.forthnet.gr:5445 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
Caused by: java.net.SocketTimeoutException: Receive timed out
[Root exception is javax.naming.CommunicationException: Failed to retrieve stub from server casper.rd.forthnet.gr/22.214.171.124:5445 [Root exception is java.io.EOFException]]
On the server console I get this
[org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected: Did not receive data from /126.96.36.199:59054. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=3]
My pom file is here
executed with mvn exec:java -Dexec.mainClass="gr.forthnet.nms.binsendrecv.BinSendRecvExample"
My jndi.properties file
and my java test program
I am running locally a jboss 7.1.0.Beta1 instance bind to casper.rd.forthnet.gr address.
Am I doing something wrong? Are the libraries included in the pom are in their correct versions to communicate with the JBoss 7.1. instance?