org.jboss.management.mejb
Class JMSNotificationListener

java.lang.Object
  extended by org.jboss.management.mejb.JMSNotificationListener
All Implemented Interfaces:
EventListener, javax.management.NotificationListener, JMSNotificationListenerMBean, ListenerMBean

public class JMSNotificationListener
extends Object
implements JMSNotificationListenerMBean

Remote Listener using JMS to send the event

Version:
$Revision: 1.6.6.2 $
Author:
???

Constructor Summary
JMSNotificationListener(String pJNDIName, javax.jms.Queue pQueue)
           
 
Method Summary
 boolean equals(Object pTest)
          Test if this and the given Object are equal.
 void handleNotification(javax.management.Notification pNotification, Object pHandback)
          Handles the given notification by sending this to the remote client listener
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSNotificationListener

public JMSNotificationListener(String pJNDIName,
                               javax.jms.Queue pQueue)
                        throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

handleNotification

public void handleNotification(javax.management.Notification pNotification,
                               Object pHandback)
Handles the given notification by sending this to the remote client listener

Specified by:
handleNotification in interface javax.management.NotificationListener
Specified by:
handleNotification in interface ListenerMBean
Parameters:
pNotification - Notification to be send
pHandback - Handback object

equals

public boolean equals(Object pTest)
Test if this and the given Object are equal. This is true if the given object both refer to the same local listener

Overrides:
equals in class Object
Parameters:
pTest - Other object to test if equal
Returns:
True if both are of same type and refer to the same local listener

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
Hashcode of the local listener


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.