[jira] [Commented] (QPID-3325) Make it possible to access broker shutdown hook from outside

2011-07-12 Thread Robbie Gemmell (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13063839#comment-13063839
 ] 

Robbie Gemmell commented on QPID-3325:
--

Hi Danushka,

The work Keith referenced (QPID-3026) has now been completed, in concert with 
other related work on broker startup (QPID-2815). Keith's suggestion from this 
this JIRA was not included, but I think its a good idea and should be. My main 
reservation with the attached patch would be that since none of our code uses 
the getter and its not obvious why it should be there then it would likely just 
get 'cleaned up' by someone at some point.

Could you let us know if the reasoning behind exposing the shutdown hook thread 
was as queried, and whether the suggested approach would do what you are 
looking for? (updated patch welcome too)

Thanks,
Robbie

 Make it possible to access broker shutdown hook from outside
 

 Key: QPID-3325
 URL: https://issues.apache.org/jira/browse/QPID-3325
 Project: Qpid
  Issue Type: Improvement
Reporter: Danushka Menikkumbura
Assignee: Robbie Gemmell
 Attachments: QPID-3325.patch




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org



[jira] [Commented] (QPID-3325) Make it possible to access broker shutdown hook from outside

2011-06-30 Thread Keith Wall (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13057706#comment-13057706
 ] 

Keith Wall commented on QPID-3325:
--

Hi Danushka

I've reviewed your patch.

First, I have a question.  For what purpose does calling code require access to 
the ShutdownServiceThread?  If it is so the calling code can can *unregister* 
the shutdown hook, then I think it would be better if ApplicationRegistry 
itself took on this responsibility.  I think ApplicationRegistry should 
register the shutdown hook on initialisation (initialise()), and remove the 
shutdown hook when the remove is called (currently remove/removeAll()).

I am currently working in ApplicationRegistry (QPID-3026) and could incorporate 
this improvement too.  Please let me know your thoughts.  

Kind regards Keith Wall.


 


 Make it possible to access broker shutdown hook from outside
 

 Key: QPID-3325
 URL: https://issues.apache.org/jira/browse/QPID-3325
 Project: Qpid
  Issue Type: Improvement
Reporter: Danushka Menikkumbura
Assignee: Robbie Gemmell
 Attachments: QPID-3325.patch




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org