Hi, I've moved your question to the user forums:
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823027#3823027 I've copied below: Currently SnmpAgent subscribes/unsubscribes for notifications during start()/stop() and it requires that the target mbeans are present. The closest you can get is start SnmpAgent first and use a "depends" clause in his mbean descriptor, so that it starts immediatelly after the target mbeans. This will allow you to produce traps AFTER those mbeans are started. However, if you want to map the "starting/started" notification from those mbeans to traps, this is obviously not good. The good news is that I plan to replace the SnmpAgent subscription mechanism with my new org.jboss.system.ListenerServiceMBeanSupport class, which solves the chicken/egg problem by monitoring for new mbeans and registering for events dynamically, AFTER start. How much do you need this? I might make it for JBoss 3.2.4 Regards /Dimitris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Guy Thomas Sent: ÎÏÎÏÎ, 24 ÎÎÎÏÎÏÎÏÎÎÏ 2004 9:51 ÏÎ To: [EMAIL PROTECTED] Subject: [JBoss-dev] SnmpAgent startup sequence When SnmpAgent is loaded in JBoss it read 3 files (managers.xml, notifications.xml and mbeans.xml). However, at that moment our application services haven't been loaded by JBoss yet. As a result, I cannot specify these services in mbeans.xml, because the services don't exist yet. How do I get around this chicken and egg problem? SnmpAgent has to be first because it has to send a trap when our services are started, but our services have to be there before SnmpAgent because otherwise they aren't recognized by SnmpAgent when mbeans.xml is parsed. Or is there a way of registering a service with an already running SnmpAgent when it is loaded? ------------------------------------------------------- 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-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ------------------------------------------------------- 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_id56&alloc_id438&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
