3 Replies Latest reply on Sep 15, 2005 1:11 AM by mkundu

    Can't access jndi remotely

      Hi,

      I am newbie in this forum.I have written a application in jboss which is running perfectly in Local computer.When I'm trying to access this application from LAN connected computer it's throw runtime exception like

      javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out].


      Please Help.


        • 1. Re: Can't access jndi remotely
          gressil

          Hi,

          I had a similar problem when I first started using JBoss, I eventually traced it down to the fact that I had two ethernet cards in my machine and one (that was unused) was not initialised correctly and I think the JNDI listener was binding to the incorrect one.

          Maybe worth checking out if you have a similar problem.

          Chris.

          • 2. Re: Can't access jndi remotely
            soloink

            Just make sure your jndi properties does not have localhost as the system that listens for connections.
            Such as : (java.naming.provider.url=jnp://localhost:1099)
            If this property is not set then set it to the correct system, either by name or ip, depending of you are using dns.

            Hope this helps.

            • 3. Re: Can't access jndi remotely

              Hi,

              Thank You.It really helps me.I have chnged my naming provider url localhost to my machine address and now it is working. I can access my application from any where in LAN.