"fmoo" wrote:"fmoo" wrote:
Hi,
I'm using:
Jboss 3.2.2
Java sdk 1.4
Ant 1.54
When I run jboss server, titan.jar and clients in the same machine all is fine.
But, when I try to run client1 in a remote machine the following error is shown:
Buildfile: build.xml
prepare:
compile:
ejbjar:
run.client_41a:
[java] javax.naming.CommunicationException: Receive timed out. Root exception is java.net.SocketTimeoutException: Receive timed out
[java] at java.net.PlainDatagramSocketImpl.receive(Native Method)
[java] at java.net.DatagramSocket.receive(DatagramSocket.java:670)
[java] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1093)
[java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1192)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
[java] at com.titan.clients.Client_1.main(Client_1.java:28)
BUILD SUCCESSFUL
Total time: 17 seconds
I use workbook example files without any change.
What's wrong?
Pleas help me soon!
"bazza" wrote:"bazza" wrote:
Question for you: How does the client program know what host jndi is running on?
Take a look at ex04_1/jndi/jndi.properties