How to find the domino Server status using java code

Hi, I am working on lotus notes tool.I want to check the domino server is running or not?How i can do that using java code.

presently i am doing in this way:

NotesThread.sinitThread();

Session m_NotesSess=lotus.domino.NotesFactory.createSession();

Database db=m_NotesSess.getDatabase(servername,dbname);

if i run the above code without running the domino server ,i am not getting any output or error even after 10 minutes also.

Because my server is not yet started…

So how i can test this functionlity?..

Can any body help me on this?

thanks in advacne.

Regards,

Sankar

Subject: how to find the domino Server status using java code

To know if a Domino server is dead or alive use “show heartbeat” command. You can find sample code here:http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/f7017361a4634a278525710900613dce?OpenDocument

Regards

Litty Joseph