See:

        http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html#nethostname

Explicitly tell the RMI server where it lives when starting Java:

        java -Djava.rmi.server.hostname=198.136.189.254 ...

If the RMI server is running on a different machine, then trying to find
it on localhost [127.0.0.1] is not going to work.

-- Mike


On 2001-06-21 at 22:12 +0530, Bhavin Patel wrote:

> hi friends,
> 
> we r running jboss2.2 on solaris and tomcat on linux. the scenario is as
> under. our naming service is on port 8080 on solaris and  rmi is at 1099
> on linux.
> 
> problem:
>       we are calling a remote method on RMIObject(running on tomcat on
> linux)  from Session Bean(on JBoss on Solaris). we are able to lookup
> the RMI object from session bean, but when we try to call any method on
> that object , the jboss shows following error.
> 
> 
>       [SessionBeanA] from session Bean  java.rmi.ConnectException:
> Connectio
>       n refused to host: 127.0.0.1; nested exception is: 
>       java.net.ConnectException: Connection refused 
>       [SessionBeanA] java.rmi.ConnectException: Connection refused to
> host: 127.0.0.1; nested exception is: 
>       java.net.ConnectException: Connection refused 



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

Reply via email to