directory-dev mailing list archives

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

2005/10/20, Jose Alberto Fernandez <jalberto@cellectivity.com>:
>
> 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?

Trustn
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message