On Fri, May 8, 2015 at 11:35 AM, Vinod Kavinda <vi...@wso2.com> wrote:
> Hi, > I was trying the shashikap's suggestion. It seem to be still we can't > guarantee the scheduler shuts down first, since these two may run in > different threads. > @Indika, If we disable the hazelcast shutdown hook, we will have to > manually shutdown the hazelcast instance right? > No. Hazelcast anyway stop after bundle deactivate. If you want to do some task before deactivate all bundles, then you can use WaitBeforeShutdownObserver. It will block shutting down until task completion. We had a requirement of complete all messaging task before server gracefully shutting down. We used WaitBeforeShutdownObserver and complete messaging tasks in andes dependency in blocking call. Please rerer to [1] to get an idea about usage of WaitBeforeShutdownObserver. [1] https://github.com/wso2/carbon-business-messaging/blob/master/components/andes/org.wso2.carbon.andes/src/main/java/org/wso2/carbon/andes/internal/QpidServiceComponent.java > > On Fri, May 8, 2015 at 10:41 AM, Indika Sampath <indi...@wso2.com> wrote: > >> Hi Vinod, >> >> Add following property to hazelcast.properties file. This will stop >> calling shutdown hook of hazelcast when you hit Ctrl+C. >> >> hazelcast.shutdownhook.enabled=false >> >> Cheers! >> >> >> >> On Thu, May 7, 2015 at 8:58 PM, Vinod Kavinda <vi...@wso2.com> wrote: >> >>> Hi all, >>> >>> I'm working on the issue [1] where we need to shutdown a time scheduler >>> in BPS, before the hazelcast instance, at the server shutdown. >>> >>> I found this issue [2], but it is unresolved. Is there any workarounds? >>> >>> [1] - https://wso2.org/jira/browse/BPS-470 >>> [2] - https://wso2.org/jira/browse/CARBON-14719 >>> >>> Thanks and Regards, >>> Vinod Kavinda >>> -- >>> Vinod Kavinda >>> Software Engineer, *WSO2, Inc <http://www.wso2.com>.* >>> Mobile : +94 (0) 712 415544 >>> vi...@wso2.com >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Indika Sampath >> Senior Software Engineer >> WSO2 Inc. >> http://wso2.com >> >> Phone: +94 716 424 744 >> Blog: http://indikasampath.blogspot.com/ >> >> > > > -- > Vinod Kavinda > Software Engineer, *WSO2, Inc <http://www.wso2.com>.* > Mobile : +94 (0) 712 415544 > vi...@wso2.com > -- Indika Sampath Senior Software Engineer WSO2 Inc. http://wso2.com Phone: +94 716 424 744 Blog: http://indikasampath.blogspot.com/
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev