3 Replies Latest reply on Jun 21, 2005 12:41 PM by mat

    Using stateless sb

    mat Newbie

      We have many SLSB in our application, each in a jar file. The ear file containing these jars files deployed on our remote JBoss server. DAO pattern is used to fetch data from MSSQL Server. Everything works fine. However, every time a remote method is called (after a delay of about 20 seconds) from a client application, there is a delay of approximately 2 second before the remote method is invoked. If methods are invoked one after the other there is no such a time delay.
      There is no exception is thrown.

      JBoss 4.0.2 on Microsoft Server 2003, jdk 1.5.0_03

      Appreciate any help and suggestion.

        • 1. Re: Using stateless sb
          Joachim Van der Auwera Expert

          We had a similar problem on some systems. This was fixed by making sure there is a DNS reference to the target system. Apparently, the RMI code seems to attempt a reverse dns lookup which can cause delays if not found. This can easily be solved by having a reference to the server in the hosts file.

          Hope this helps you,

          • 2. Re: Using stateless sb
            tek no Novice

            Also, make sure netbios is switched off. Especially if there is firewall between your servers. Windows send UDP broadcasts to find other machines if netbios is enables, which, if the firewall block them can lead to 2-3 sec delay.

            • 3. Re: Using stateless sb
              mat Newbie

              Thank you for your help.
              Having a reference in the hosts file solved the delay problem.