September 23rd, 1999, 03:43 AM
I am trying to implement the RMI server on the Remote Host. I do it in the following manner :
1) Create the Remote Interface
2) Create a Class that Implements the Remote Interface.
3) Create the Stub and Skeleton Classes (using rmic...)
4) Copy the Remote Interface and Stub File to the Client Host
5) Start Up the remote registry
6) create and Register the Remote Object : When I try to do this procedure I use the following command at the prompt
java ServerDir.MyServerImpl
On execution the exception thrown is
'java.security.AccessControlException : access denied ( java.net.SocketPermission "111.111.111.111" connect, resolve)
(Note : the IP address here is only for understanding)
The Remote object does not get registered. How do I solve this problem ?? Please help.
Thanks
Uma
1) Create the Remote Interface
2) Create a Class that Implements the Remote Interface.
3) Create the Stub and Skeleton Classes (using rmic...)
4) Copy the Remote Interface and Stub File to the Client Host
5) Start Up the remote registry
6) create and Register the Remote Object : When I try to do this procedure I use the following command at the prompt
java ServerDir.MyServerImpl
On execution the exception thrown is
'java.security.AccessControlException : access denied ( java.net.SocketPermission "111.111.111.111" connect, resolve)
(Note : the IP address here is only for understanding)
The Remote object does not get registered. How do I solve this problem ?? Please help.
Thanks
Uma