jmx funtionnality in a dedicated class