0 Replies Latest reply on Jul 25, 2003 10:19 AM by biebel1975

    connecting to JBoss with NAT

    biebel1975

      Hi,

      I wish to connect with a client application to EJB's on a JBoss 3.2.1 server which stands behind a firewall. I've to use NAT (from external 62.72.101.38 -> internal 192.168.0.5) to reach the server. But here I've got a problem. When the client program does the JNDI lookup I got the message:

      javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
      Caught exception! java.lang.NullPointerException
      at upsilon.clLogin.actionPerformed(clLogin.java:40)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
      ...


      When the JBoss server is in the same domain and IP range everything works fine.
      In the firewall I opened the necessary ports : 1090, 1099 and 4444 for contecting with org.jnp.interfaces.NamingContextFactory
      8080 for connecting with org.jboss.naming.HttpNamingContextFactory
      Is it possible to connect to a a JBoss server that's behind a firewall???

      Thanks in advance,
      Regards,
      Bart