hi gurus, thanks to all for helping us. especially we r very thankful to Michael Bilow [[EMAIL PROTECTED]] who has given us right way.. we posted the following problem: 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 [SessionBeanA] java.net.ConnectException: Connection refused [SessionBeanA] at java.net.PlainSocketImpl.socketConnect(Native Method) [SessionBeanA] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) [SessionBeanA] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) [SessionBeanA] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) [SessionBeanA at java.net.Socket.<init>(Socket.java:273) [SessionBeanA] at java.net.Socket.<init>(Socket.java:100) Solution: (again we r thankful to Michael Bilow [[EMAIL PROTECTED]] ) 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 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user