Hi everyone,

  I am new to JBoss and have been trying to get the interestclient example 
running (the client and the EBJ running on different machines) without 
success. This example is the one found in chapter 1 of JBoss' online 
documentation. I setup the software according to the tutorial and the FAQ 
(there is one entry that mentions how to run a client application remotely.) 
But I am consistantly getting exceptions. The following is my configuration:

RedHat Linux 6.2
Sun JDK 1.3 standard edition, (jndi, rmiregistry, providerutil located in 
jdk1.3/jre/lib/ext)
JBoss 2.2.1

Since I don't have a DSN server, I use the IP address of the server running 
JBoss for java.naming.provider.url. My machines, relying solely on hosts 
files, are on a home network.

My client code is kept inside a directory together the EBJ jar and a copy of 
everything inside JBoss-2.2.1/client. The following is how I invoke the 
client and the results I got:

java -cp <all the jar files in the client directory> InterestClient

Got context
javax.naming.CommunicationException [Root exception is 
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested 
exception is:
    java.net.ConnectException: Connection refused: no further information]

My CLASSPATH is empty. The same configuration (with the 
java.naming.provider.url set to localhost) works perfectly when both client 
and JBoss server are running on the same machine. I experienced the same 
problem with JONAS. Could this be caused by an incorrect JDK configuration? 
Basically, the examples (both JBoss and JONAS) work fine as long as both the 
client and the EJB server are on the same machine. I would greatly 
appreciate if anyone can shed some light on this. Thanks in advance.


Kobi
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to