hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davor Hrg" <hrgda...@gmail.com>
Subject RegistryShutdownListener
Date Wed, 02 Aug 2006 13:34:22 GMT
If a service implements RegistryShutdownListener
and is created without using an interface in service definition
(interface is the actual class)
    <service-point id="MyService" interface="mypackage.MyService">
 ......
        <invoke-factory model="singleton">
            <construct class="mypackage.MyService">
    ....
</service-point>




registryDidShutdown will be called twice
once on registry shutdown

org.apache.hivemind.impl.RegistryInfrastructureImpl
371:      coordinatorService.shutdown();

and second time for proxy shutdown

org.apache.hivemind.impl.RegistryInfrastructureImpl
379:      _shutdownCoordinator.shutdown();


I'm not arguing if this is ok or not, just that it should be mentioned
in documentation. (or hopefully someone with this problem will find this
mail in archives)


Davor Hrg

Mime
View raw message