[ 
https://issues.apache.org/jira/browse/AIRAVATA-229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13480092#comment-13480092
 ] 

Saminda Wijeratne commented on AIRAVATA-229:
--------------------------------------------

Problem with shutdown hooks is that by the time it gets triggered all the 
objects have being disposed from the environment. Therefore we cannot do 
anything at this point....

However it is possible to capture when xbaya is closing (using window events) 
to perform the above operations. 
Committed revision 1400139.

                
> Managing Shutdown tasks using shutdown hooks
> --------------------------------------------
>
>                 Key: AIRAVATA-229
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-229
>             Project: Airavata
>          Issue Type: Improvement
>            Reporter: Chathura Herath
>            Assignee: Saminda Wijeratne
>            Priority: Minor
>             Fix For: 0.5
>
>
> There are certain cleanup tasks that are not local but require contacting 
> other components. List include
> 1) Unsubscribung from notification bus
> 2) Saving workflows if changed before closing the application
> This requires handing these cleanup tasks through java shutdownhook which 
> should be explored for robustness in 0.3

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to