4 Replies Latest reply on Jun 30, 2006 11:21 AM by Scott Stark

    How are the Notifications send in ServiceController handled

    Vicky Kak Master

       

       // Call create on the service Proxy
       try
       {
       ctx.proxy.create();
       sequenceNo++;
       Notification createMsg = new Notification(ServiceMBean.CREATE_EVENT,
       this, sequenceNo);
       createMsg.setUserData(serviceName);
       sendNotification(createMsg);
       }
      

      Above is the code snippet from the ServiceController .create(ObjectName serviceName , Collection depends) .
      I am not able to understand
      1) Who receives the Notification Message from the sendNotification(createMsg);
      2) And how is this used ?

      Some direction with reference to the code will be helpful .

      Regards
      Vicky