[jboss-user] [JNDI and Naming] - JNDI multi url over HTTP

ark99 do-not-reply at jboss.com
Thu Nov 26 03:22:04 EST 2009


Hi,

I try to use a coma separated list of url for initializing my InitialContext. 

When I use a single url with jnp, it works fine:
String url = "jnp://localhost:1099";

When I use a list of url with jnp, it works fine:
String url = "jnp://thisIsAFakeServer:1099,jnp://localhost:1099";

When I use a single url over http (when HTTPInvoker is activated), it works fine (This is my actual configuration in production):
String url = "http://localhost:8080/invoker/JNDIFactory";

BUT When I use a list of url over http, I got a MalformedUrlException
String url = "http://thisIsAFakeServer:8080/invoker/JNDIFactory,http://localhost:8080/invoker/JNDIFactory";

Is this coming from the HTTPInvoker configuration? The problem is that I'd like to use a list of URL, but the use of HTTP is necessary too... But if it works with jnp, it must be possible with http too?

Any idea?


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267617#4267617

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267617



More information about the jboss-user mailing list