My EJBs are deployed in server. In case server is not running and i lookup the bean in client using context.lookup() .. Exception is shown that connection refused like this
So i want to check whether server is running before i lookup.How can i do that? Thanks in advance Siva
[ October 27, 2004: Message edited by: Sivakumar Nachimuthu ] [ October 27, 2004: Message edited by: Sivakumar Nachimuthu ]
Originally posted by Sivakumar Nachimuthu: yaa u r right.but i want know thru my java code whether server running in the remote machine in th port 1099. siva
Hello Siva, I think you should try using java.net package for this purpose.
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Why dont you catch that exception? (it is not a runtime exception...) Also, I dont see what you can achieve by knowing it 'beforehand'. -Siplin [ November 10, 2004: Message edited by: Siplin Ayishoto ]
we cant catch these exception.The Above exception was caught inside jboss naming server and printStackRace of exception is printed by jboss naming service.