4 Replies Latest reply on Apr 11, 2006 2:39 AM by Alexander Golubev

    Jacorb timeout

    Alexander Golubev Newbie

      Hi,
      I've JBOSS application that uses jacorb.
      The problem is when application tries to talk by jacorb with host that isn't accessible - it takes a lot of time (probably ~ 20secs). So I've edited jacorb.properties file and changed number of retries to zero (It takes about 1 minute when retries was 5). But 20 secs is still not acceptible :(.
      So I guess that i can't affect on this timeout by changing only jacorb.properies timeouts.
      May be i need to change SocketFactory that Jacorb uses or something else ? Has anyone faced such problem?

        • 1. Re: Jacorb timeout
          Jimmy Wilson Apprentice

           

          "golubec" wrote:
          The problem is when application tries to talk by jacorb with host that isn't accessible - it takes a lot of time (probably ~ 20secs). So I've edited jacorb.properties file and changed number of retries to zero (It takes about 1 minute when retries was 5). But 20 secs is still not acceptible :(.
          So I guess that i can't affect on this timeout by changing only jacorb.properies timeouts.


          You certainly can change the timeouts for various client-side aspects, but I am not sure what you want to solve given your post above. Is the issue that you wish JacORB to figure out the server is not available in less than 20 seconds?

          Depending on your version of JBoss (and subsequently the version of JacORB), you may have the ability to set the following property, and it may be of some help to you. Which version of JBoss are you using?

          # Initial timeout for establishing a connection.
          #jacorb.connection.client.connect_timeout=0


          • 2. Re: Jacorb timeout
            Alexander Golubev Newbie

            I'm using JBOSS 4.0.0 (and I can't update it to the new version, since there are some business constraints). So jacorb went along with my JBOSS doesn't have such property , as

            jacorb.connection.client.connect_timeout=0

            So what could you advise me? If there is possibility to update my jacorb can you provide me with details?

            • 3. Re: Jacorb timeout
              Jimmy Wilson Apprentice

               

              "golubec" wrote:
              I'm using JBOSS 4.0.0 (and I can't update it to the new version, since there are some business constraints). So jacorb went along with my JBOSS doesn't have such property...So what could you advise me? If there is possibility to update my jacorb can you provide me with details?


              The version of JacORB that shipped with JBoss 4.0.0 appears to have been JacORB 2.2 (JBoss Patch 2). I downloaded JacORB 2.2 from the JacORB website, and looked at the jacorb.properties file template contained in that JacORB distribution. It contains the property shown below (and mentioned in previous posts):

              # Initial timeout for establishing a connection.
              #jacorb.connection.client.connect_timeout=0

              Given that, you should try adding it to your jacorb.properties file in the conf subdirectory of your server configuration.

              • 4. Re: Jacorb timeout
                Alexander Golubev Newbie

                Thanks a lot jiwils,
                I've downloaded last jacorb lib and just added to jacorb.properties absent property. Now it's working.