[jboss-dev-forums] [Design of JBossCache] - Shutdown hooks

manik.surtani@jboss.com do-not-reply at jboss.com
Fri Jan 4 08:11:34 EST 2008


This is in response to a user forum thread http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089709#4089709 and it's corresponding JIRA JBCACHE-1204.

What will happen for JBC 2.1.0.GA is that the default behaviour is:

1.  If an MBean server is detected, do not register a shutdown hook.
2.  Else, register a shutdown hook.

To make things more sophisticated for cases where an MBean server may not control shutdown or a non-MBean server environment may control shutdown (such as a JBoss-MC standalone environment) there is a config parameter:


  | 
  | <!--
  |   Available options:
  |      DEFAULT (this is selected if this config element is omitted)
  |      REGISTER (forces registering the hook, even if an MBean server is detected)
  |      DONT_REGISTER (does not register a hook, even if an MBean server is not detected)
  | -->
  | <attribute name="ShutdownHookBehaviour">DEFAULT</attribute>
  | 
  | 

Any thoughts or comments on this?  Brian?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117032#4117032

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117032



More information about the jboss-dev-forums mailing list