0 Replies Latest reply on Apr 28, 2006 2:12 PM by jose luis herrero

    JNDI over HTTP with a FIREWALL

    jose luis herrero Newbie

      Hi

      I've been developing projects under JBOSS with no problem. The project we develped runs ok, but now we have some troubles with firewalls. The solution can be using JNDI via HTTP. I've read the documentation about it and jboss-service.xml has been changed. At the end of this message shows this file.

      Clients InitialContext is as follows:

      environment.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
      environment.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
      environment.put Context.PROVIDER_URL, "http://[IP]:8080/invoker/JNDIFactory");

      Clients Bind ok, but when invoking methods, no answer is recieved, seems that binding are local.

      We have a firewall and ports 8080, 1099 have been redirected to jboss machine (that is 192.168.1.1 to 192.168.1.2). I've been reading something about this, and the solution could be telling JBOSS about this situation.

      How do I configure JBOSS? Can anybody help me?


      ----------JBOSS-SERVICE.XML-------------

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server>
      <!-- $Id: jboss-service.xml,v 1.4.6.1 2004/11/29 16:50:50 starksm Exp $ -->



      <!-- The HTTP invoker service configration
      -->

      <!-- Use a URL of the form http://:8080/invoker/EJBInvokerServlet
      where is InetAddress.getHostname value on which the server
      is running.
      -->
      http://
      :8080/invoker/EJBInvokerServlet
      true


      <!-- Expose the Naming service interface via HTTP -->

      <!-- The Naming service we are proxying -->
      jboss:service=Naming
      <!-- Compose the invoker URL from the cluster node address -->
      http://
      :8080/invoker/JMXInvokerServlet
      true
      org.jnp.interfaces.Naming



      org.jboss.proxy.ClientMethodInterceptor
      org.jboss.proxy.SecurityInterceptor
      org.jboss.naming.interceptors.ExceptionInterceptor
      org.jboss.invocation.InvokerInterceptor




      <!-- Expose the Naming service interface via clustered HTTP. This maps
      to the ReadOnlyJNDIFactory servlet URL
      -->

      jboss:service=Naming
      http://
      :8080/invoker/readonly/JMXInvokerServlet
      true
      org.jnp.interfaces.Naming



      org.jboss.proxy.ClientMethodInterceptor
      org.jboss.proxy.SecurityInterceptor
      org.jboss.naming.interceptors.ExceptionInterceptor
      org.jboss.invocation.InvokerInterceptor