1 Reply Latest reply on Jul 17, 2009 4:08 PM by Ron Sigal

    Failsafe RMI

    warum muss Newbie

      Hy,

      I'm wondering what the best way is to make a RMI/Synchron-Call (from JBoss to JBoss) failsafe. So I have JBoss1 in wich is running a SSB
      (doing some things on DB return result), and JBoss 2 in wich is running a SSB calling SSB on JBoss1.


      Problems that may occur:

      - SSB from JBoss2 tries to call SSB on JBoss1 and JBoss1 is down
      + how to retry the call?

      - SSB from JBoss2 calls SSB on JBoss1 and the connection gets lots during the call
      + how to retry the call?

      - SSB from JBoss2 calls SSB on JBoss1, SSB on JBoss1 changes things in the DB after that the connection between the two JBoss gets lost
      + how to rollaback the changes in the database?


      I took a look at jboss-remoting and it seems that this could solve this problems.


      Greets goldi

        • 1. Re: Failsafe RMI
          Ron Sigal Master

          Hi Goldi,

          "goldi" wrote:

          - SSB from JBoss2 tries to call SSB on JBoss1 and JBoss1 is down
          + how to retry the call?

          - SSB from JBoss2 calls SSB on JBoss1 and the connection gets lots during the call
          + how to retry the call?


          Well, Remoting can retry an invocation in the event of a network failure, but I suspect you're better off handling the failure at the application level.

          "goldi" wrote:

          - SSB from JBoss2 calls SSB on JBoss1, SSB on JBoss1 changes things in the DB after that the connection between the two JBoss gets lost
          + how to rollaback the changes in the database?


          Here you want to look into transactions. If you're not familiar with the O'Reilly book Enterprise JavaBeans 3.0 by Bill Burke (who works for JBoss) and Richard Monson-Haefel, that's a good source.

          -Ron