Thaks Matt. Works!
Antonio Il giorno 10/mar/10, alle ore 19:36, Matt Brozowski ha scritto: > Did you try configuring a destroy method on your spring bean? > > http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-factory-lifecycle-disposablebean > > Matt > > On Wed, Mar 10, 2010 at 11:56 AM, Antonio Russo <rssnt...@yahoo.it> > wrote: >> I've enhanced the snmp poller to save the poll status and the last >> poll time >> into the snmpinterface table. >> Becouse snmppoller is disabled by default I'd like to have before >> the daemon >> stops all >> the snmpinterface set to 'N' that means not polled. In fact, in >> the case >> there is a restart in which you comment out the SnmpPoller >> service the SnmpInterface must be in the right status (that is Not >> Monitored). >> My onStop method is not called. This is due to the fact >> that AbstractSpringContextJmxServiceDaemon >> does not call a daemon.stop() method as expected. >> It cannot becouse the SpringServiceDaemon >> does not have a method stop()! Why? >> >> Regards >> Antonio >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Please read the OpenNMS Mailing List FAQ: >> http://www.opennms.org/index.php/Mailing_List_FAQ >> >> opennms-devel mailing list >> >> To *unsubscribe* or change your subscription options, see the >> bottom of this >> page: >> https://lists.sourceforge.net/lists/listinfo/opennms-devel >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Please read the OpenNMS Mailing List FAQ: > http://www.opennms.org/index.php/Mailing_List_FAQ > > opennms-devel mailing list > > To *unsubscribe* or change your subscription options, see the bottom > of this page: > https://lists.sourceforge.net/lists/listinfo/opennms-devel ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel