src/share/classes/com/sun/jndi/url/rmi/rmiURLContextFactory.java
Print this page
*** 61,71 ****
"rmiURLContextFactory.getObjectInstance: " +
"argument must be an RMI URL String or an array of them"));
}
}
! private static Object getUsingURL(String url, Hashtable env)
throws NamingException
{
rmiURLContext urlCtx = new rmiURLContext(env);
try {
return urlCtx.lookup(url);
--- 61,71 ----
"rmiURLContextFactory.getObjectInstance: " +
"argument must be an RMI URL String or an array of them"));
}
}
! private static Object getUsingURL(String url, Hashtable<?,?> env)
throws NamingException
{
rmiURLContext urlCtx = new rmiURLContext(env);
try {
return urlCtx.lookup(url);
*** 77,87 ****
/*
* Try each URL until lookup() succeeds for one of them.
* If all URLs fail, throw one of the exceptions arbitrarily.
* Not pretty, but potentially more informative than returning null.
*/
! private static Object getUsingURLs(String[] urls, Hashtable env)
throws NamingException
{
if (urls.length == 0) {
throw (new ConfigurationException(
"rmiURLContextFactory: empty URL array"));
--- 77,87 ----
/*
* Try each URL until lookup() succeeds for one of them.
* If all URLs fail, throw one of the exceptions arbitrarily.
* Not pretty, but potentially more informative than returning null.
*/
! private static Object getUsingURLs(String[] urls, Hashtable<?,?> env)
throws NamingException
{
if (urls.length == 0) {
throw (new ConfigurationException(
"rmiURLContextFactory: empty URL array"));