activating jmx by default and unregistration in webapp hook if needed