User: allsopp
Date: 01/01/13 10:21:33
Modified: src/main/org/jboss/util ServiceControl.java
Log:
Don't barf on unexpected notification types. Rickard says it should be done
with a NotificationFilter, but this is the minimal change neccessary to stop
it breaking the soon-to-be-committed JCA implementation.
Revision Changes Path
1.7 +2 -2 jboss/src/main/org/jboss/util/ServiceControl.java
Index: ServiceControl.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/util/ServiceControl.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ServiceControl.java 2000/12/13 09:22:59 1.6
+++ ServiceControl.java 2001/01/13 18:21:32 1.7
@@ -22,7 +22,7 @@
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
* @author Hugo Pinto (mailto:[EMAIL PROTECTED])
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class ServiceControl
@@ -226,7 +226,7 @@
{
AttributeChangeNotification attrChg =
(AttributeChangeNotification)notification;
//
log.log(handback+":"+attrChg.getAttributeName()+":"+attrChg.getNewValue());
- } else
+ } else if (notification instanceof MBeanServerNotification)
{
MBeanServerNotification reg = (MBeanServerNotification)notification;