Hi, 

I wonder if the usage of spring bean destroy-method is supported in dspace

<bean id="exampleBean"
         class="examples.ExampleBean" destroy-method="destroy"/>
Following is the class definition:

public class ExampleBean {
   public void destroy() {
      // do some destruction work
   }
}


I wonder if the full life cycle of the bean is managed. 

I'm looking for a method to teardown a service that i have registered as a
bean. The service has some non-deamon thread that cause problem when i stop
tomcat. I want to avoid memory leak. 

I am actually using Akka in my service. I need to call a system.shutdown. 


I saw the DSpaceContextListener as a potential point where to
programmatically do it (if there is a better listener please let me know),
but i wonder if it is not already well manage with bean lifecycle. 

Best,

Maatari
I'm using dspace 1.8.2



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/How-to-tear-down-a-service-register-as-a-pring-bean-Is-spring-bean-destroy-method-it-supported-tp4678302.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to