This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have some problem in working on java RMI in netbeans IDE6.0
when I run the server this exception is represented :
Remote exception: java.rmi.ConnectException: Connection refused to host: 192.168.73.68; nested exception is:
java.net.ConnectException: Connection refused: connect
It seems I have no permisson to port, and I dont know how I can activate the premission
Farzane Arabi wrote:
It seems there is no need to export the object by insrting this line and and making an obbject of "SampleServerImpl" is enougth to export the Server object,
Yeah you do not need to export it. UnicastRemoteObject constructor exports automatically.
Did you try to use the rmi registry as told by Oscar?
Naming requires the name to be in the format of a URL and not a simple name. See javadocs for details.