5 Replies Latest reply on Jan 10, 2004 5:18 AM by stefano_fornari

    Detecting if a remote reference is still valid

    stefano_fornari

      Hi All EJB gurus,
      I would need a help in sorting out this issue.

      I have a fat client that gets a remote object and makes calls as it requires. It is a GUI driven application, so the user can also go away for a coffee. The EJB is a session EJB, thus in the meantime, the session may expire or more harmfully, the server crashes and restarts.
      What happens then to my remote reference? I doubt it would be still valid. If it is invalid, is there a way to know that state? Or I have to catch the RemoteException and try a new lookup?

      Many thanks in advance

      Stefano