FileDocCategorySizeDatePackage
ListenerRegistration.javaAPI DocGlassfish v2 API4320Fri May 04 22:34:04 BST 2007javax.management.j2ee

ListenerRegistration

public interface ListenerRegistration implements Serializable
ListenerRegistration defines the methods which clients of the MEJB use to add and remove event listeners.
author
Hans Hrasna

Fields Summary
Constructors Summary
Methods Summary
public voidaddNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
Add a listener to a registered managed object.

param
name The name of the managed object on which the listener should be added.
param
listener The listener object which will handle the notifications emitted by the registered managed object.
param
filter The filter object. If filter is null, no filtering will be performed before handling notifications.
param
handback The context to be sent to the listener when a notification is emitted.
exception
InstanceNotFoundException The managed object name provided does not match any of the registered managed objects.
exception
RemoteException A communication exception occurred during the execution of a remote method call

public voidremoveNotificationListener(javax.management.ObjectName name, javax.management.NotificationListener listener)
Remove a listener from a registered managed object.

param
name The name of the managed object on which the listener should be removed.
param
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.
exception
InstanceNotFoundException The managed object name provided does not match any of the registered managed objects.
exception
ListenerNotFoundException The listener is not registered in the managed object.
exception
RemoteException A communication exception occurred during the execution of a remote method call