10 Replies Latest reply on Dec 19, 2005 2:42 PM by mustaghattack

    Remote EJB Client doesn't work but Remote RMI Client does

    mustaghattack

      Hello,

      I have a working JBoss 4.0.3 server behind a firewall (in a DMZ). The following port are open : 1098, 1099, 4444 and 4445.
      I use the -Djava.rmi.server.hostname and the System.getProperty( java.rmi.server.hostname ) return the correct hostname.

      My simple remote client can't access to the server : it wait ...
      The client is using JNDI like this :

      env.setProperty( Context.PROVIDER_URL, url );
      env.setProperty(Context.SECURITY_PRINCIPAL, login );
      env.setProperty(Context.SECURITY_CREDENTIALS, mdp );
      env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");
      


      I have done a simple RMI client/server test, and it work fine.

      I have equally put the server on a machine which is not behind a firewall and it work.

      My remote EJB client work in my local network.

      I don't have anymore idea ...

      Thanks for your help !!