Dimitri, "jmx.attribute.changed" is not the notification type I want to be handled by the snmp agent. In the sendNotifcation call in my code I specified IMPORTSERVICE_REGISTRATION_NOTIFICATION as the notification type and I specified a mapping for it in the notifications.xml file, but it wasn't handled.
When I added a mapping for jmx.attribute.changed I got the following trap information in /var/log/syslog (NOT containing my own message "ImportService started"): Feb 26 11:31:42 epsilon snmptrapd[29500]: 10.0.0.190: Warm Start Trap (0) Uptime: 0:22:36.88, .iso.2.3.4.5.6.7.9 = "Thu Feb 26 11:29:26 CET 2\004", .iso.2.3.4.5.6.7.6 = Counter64: 380, .iso.2.3.4.5.6.7.14 = "javax.management.AttributeChangeNotification", .iso.2.3.4.5.6.7.19 = "javax\.management.AttributeChangeNotification: source=jboss.scripts:service=OpslagImport seq-no=1 time=1077791502107 message=ImportService starting\ attributeName=State attributeType=java.lang.Integer oldValue=0 newValue=2 notificationType=jmx.attribute.change userData=null" I want to be able to specify separate notification types and notification messages for each mbean (starting, stopping, ...). Another problem I see at the moment is how to handle events that are dealt with in classes that are not mbeans themselves but that are triggered by an mbean. For example, the ImportService loads a bunch of classes that, among other things, handle the import of data for which it is important they arrive at regular intervals. What if they don't and I want to send a notification to the management station that there are no recent data anymore? Best regards, Guy View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823077#3823077 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823077 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
