Check the validity of the URL before calling Naming.lookup(...)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Khyos_E
Posted On:   Tuesday, April 2, 2002 04:02 AM

I would like if there is a simple and quick way to check the validity of the URL (or the IP Address).


Indeed, when I call Naming.lookup with a wrong url, the program is blocked in this function. So, I would like to check the URL before, or to trigger off an exception.


Thanks!

Re: Check the validity of the URL before calling Naming.lookup(...)

Posted By:   Thomas_Hackel  
Posted On:   Tuesday, April 2, 2002 07:20 AM

java.net.URL(urlString);
,
throws also an MalformedURLException... so you can use this before using RMI.
About | Sitemap | Contact