2 Replies Latest reply on Feb 27, 2003 3:16 AM by slaboure

    Failover of session bean?

    simonhuang

      I try to use the failover of session bean in JBoss 3.0.4.
      First, client application invoke the bean twice.
      Server dies after the first invocation and before the second invocation. Clustering works fine. Another server will continue the second invocation.
      Second, when client invoke a method of the bean, server dies before the invocation return. In this case, there are no failover happened. Client regards the invocation is not done and keep waiting. How do I set JBoss to make failover in the situation?
      Any suggestion is appreciated.
      BTW, I disconnect internet connection to simulate crash of server.

        • 1. Re: Failover of session bean?
          slaboure

          That's logical: it is waiting for a TCP timeout! How do you want to make the difference between:
          - a dead node
          - a slow node or a slow network?

          => timeout. This is a TCP/RMI thing.

          Nevertheless, all other clients (your situation only simulates a single client) would correctly failover: this one will simply take more time to report an error (AND NOT FAILOVER!!! It is not allowed as we don't know if it has changed some state on the server, we are not allowed to blindly failover).

          cheers,


          sacha

          • 2. Re: Failover of session bean?
            slaboure

            Plus, please use 3.0.6.