In case there is someone willing to offer a useful suggestion, I tired to 
follow the documentation below that comes from from:
http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch3.chapter.htmlObviously I 
am missing something big when reading it.

3.2.1.2. The HTTP InitialContext Factory Implementation
The JNDI naming service can be accessed over HTTP...

To access JNDI over HTTP you use the org.jboss.naming.HttpNamingContextFactory 
as the factory implementation. The complete set of support InitialContext 
environment properties for this factory are:

java.naming.factory.initial: ...must be 
org.jboss.naming.HttpNamingContextFactory.
MyCode has:
env.put(Context.INITIAL_CONTEXT_FACTORY,
             "org.jboss.naming.HttpNamingContextFactory");

java.naming.provider.url (or Context.PROVIDER_URL): ... the default setup 
places the JMX invoker servlet under /invoker/JMXInvokerServlet.
...full HTTP URL  Examples include: 
http://www.jboss.org:8080/invoker/JMXInvokerServlet 
http://www.jboss.org/invoker/JMXInvokerServlet 
https://www.jboss.org/invoker/JMXInvokerServlet 

The first example accesses the servlet using the port 8080. The second uses the 
standard HTTP port 80, and the third uses an SSL encrypted connection to the 
standard HTTPS port 443.
MyCode Failed (even after correcting localHost to localhost) with:
env.putContext.PROVIDER_URL,"http://localhost:8080/invoker/JMXInvokerServlet";);
env.putContext.PROVIDER_URL,"http://localhost/invoker/JMXInvokerServlet";); and
env.putContext.PROVIDER_URL,"http://localhost:1099/invoker/JMXInvokerServlet";);

java.naming.factory.url.pkgs: must be: ... org.jboss.naming:org.jnp.interfaces.
MyCode used:
env.put(javax.naming.Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");

... If the JBoss web server is sitting behind one or more firewalls or proxies 
... 
It is not.

There must be more to it.
Thanx.


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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to