javax.management.j2ee

Interface ListenerRegistration

  • All Superinterfaces:
    Serializable

    public interface ListenerRegistration
    extends Serializable
    ListenerRegistration defines the methods which clients of the MEJB use to add and remove event listeners.
    Author:
    Hans Hrasna
    • Method Detail

      • addNotificationListener

        void addNotificationListener(ObjectName name,
                                     NotificationListener listener,
                                     NotificationFilter filter,
                                     Object handback)
                              throws InstanceNotFoundException,
                                     RemoteException
        Add a listener to a registered managed object.
        Parameters:
        name - The name of the managed object on which the listener should be added.
        listener - The listener object which will handle the notifications emitted by the registered managed object.
        filter - The filter object. If filter is null, no filtering will be performed before handling notifications.
        handback - The context to be sent to the listener when a notification is emitted.
        Throws:
        InstanceNotFoundException - The managed object name provided does not match any of the registered managed objects.
        RemoteException - A communication exception occurred during the execution of a remote method call
      • removeNotificationListener

        void removeNotificationListener(ObjectName name,
                                        NotificationListener listener)
                                 throws InstanceNotFoundException,
                                        ListenerNotFoundException,
                                        RemoteException
        Remove a listener from a registered managed object.
        Parameters:
        name - The name of the managed object on which the listener should be removed.
        listener - The listener object which will handle the notifications emitted by the registered managed object. This method will remove all the information related to this listener.
        Throws:
        InstanceNotFoundException - The managed object name provided does not match any of the registered managed objects.
        ListenerNotFoundException - The listener is not registered in the managed object.
        RemoteException - A communication exception occurred during the execution of a remote method call

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/management/j2ee/ListenerRegistration.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com, ListenerRegistration (Java(TM) EE 7 Specification APIs)

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.