directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
Subject Re: [MINA] Shutdown notification
Date Tue, 25 Oct 2005 11:45:04 GMT
Hi Jose,

2005/10/20, Jose Alberto Fernandez <>:
> I need to properly close some resources when I unbind a particular
> service. Is there any way to get notified that a Service is being unbound
> from the system?
> Or is there some other strategy that you guys use to release resources
> once a Service is unbound.

There isn't a direct way to implement this. Instead, you can wrap existing
ServiceRegistry or Acceptor and override unbind() and unbindAll() method
properly. Would providing an event handler for this help users? I'm not sure
about that yet. WDYT?

what we call human nature is actually human habit

View raw message