Connection Timeout in Diiop Session?

I just want to know, Is there any option in Java CORBA API from where I can give the session timeout?

I have domino server running on a machine and I can check this using the java.net package and figure out that this machine is responding and up.

But my problem is when I create a domino’s session using NotesFactory.createSession( host, userName, Password). This command is not responding and giving exception after a long time.

The reason is wrong host name specified in the domino’s configuration, Is there any way to identify using the CORBA API that this machine is up but domino’s session is not successfully created,

OR

any way to get some exception quickly that Domino’s session is not able to create on this machine?

Please help.

thanx in advance

-Amit