In order to collect and expose custom application statistics an MBean needs to be created, the application code instrumented to provide the statistics and the JMX infrastructure configuration modified to initialize the newly created MBean.