Problem with Naming.Lookup
My problem:
-
I will be continuously request the Server : for status whether it is running or not. In middel of the request, If i close RMI Server,
The method "Naming.Lookup" execution is taking 5 to 10 min time to get out . And some times not releasing.
Is there is any solution ?
# 3
When I connect from
Client
Remote Desktop Client
Server:
SUN JAVA SYSTEM APPLICATION SERVER 9.0
Initial Context object is initialized as per below coding,
System.setProperty("org.omg.CORBA.ORBInitialHost", prop.getProperty("hostName"));
System.setProperty("org.omg.CORBA.ORBInitialPort", prop.getProperty("portNumber"));
InitialContext ctx = new InitialContext();
while .lookup("globalJndiNameForSessionBean") method is invoked on the InitialContext object and if the server is not available, it is throwing non stop error.
Please tell me wether I have to add any other Properties to limit the time of lookup and make the method to throw an Exception after two or three second, if the server is not available.