What do you mean by "In the properties I use the  server IP instead of
"localhost"?  The error clearly indicates that it is trying to connect to
localhost.  Put a line like this in jndi.properties:

java.naming.provider.url=1.2.3.4 (use the appropriate ip address here for
your remote server)

and make sure you don't have another jndi.properties in your classpath
anywhere.  Also make sure you are not setting this value inside your client
program.

----- Original Message -----
From: "Rene Maldonado" <[EMAIL PROTECTED]>
To: "JBoss" <[EMAIL PROTECTED]>
Sent: Tuesday, October 30, 2001 8:32 PM
Subject: [JBoss-user] Remote Client


> Hi All,
>
> I use the examples (Intyerest) and work ok (localy) but if I try to usit
> on another machine, I can't connect to the server.
>
> The exception is:
>
> 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]
>
> In the properties I use the  server IP instead of "localhost"
>
> What is wrong with it?
>
> Thanks
>
> Rene
>
>
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



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

Reply via email to