Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-50

Automatic EJB reconnection mechanism fails if Version Handshake times out

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.0.12.Final, 1.1.0.Alpha1
    • 1.0.11.Final
    • None

      There is a loophole in the reconnect mechanism.

      When the ReconnectHandler has done its job of establishing a remoting connection and has deregistered itself and registered the RemotingConnectionEJBReceiver, the latter tries to make a Version handshake with a timeout of 5 seconds (in 1.0.5.Final, configurable in the current master).

      If this handshake times out, the RemotingConnectionEJBReceiver unregisters itself from the EJBClientContext, without registering its ReconnectHandler to try at a later time, when the remote-ejb-host might not be so busy, and react faster. So the EJBClientContext is left without RemotingConnectionEJBReceiver and without a reconnect handler.

              jaikiran Jaikiran Pai (Inactive)
              steffenwollscheid Steffen Wollscheid (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: