0 Replies Latest reply on Dec 11, 2003 1:54 AM by pwijntjes

    how to setup / implement remote event listener model

    pwijntjes

      I would like to do the following.
      client connects to EJB through iiop and adds itself as a listener to an event i.e. onHourlyTimerEvent. When this event occurs the client application (bean) should be called.
      How do I setup and implement this?

      client :
      init()
      {
      create remote object.
      object.addHourlyTimerEventListenter(this, myTimerEventHandler).
      }

      void myTimerEventHandler()
      {
      System.out.println("event occured");
      }

      server (stateless session bean.):


      void notifyListeners();
      {
      locates registered (added) listeners and calls the listenerobjects event.
      }