It's impossible to expose statistics via JMX from more than one application

Description

Deploying more than one application using hibernate search with hibernate.search.jmx_enabled=true on the same application server leads to overwrite StatisticsInfoMBean (and probably other mbeans), so exposed statistics will come only from the last deployed application.
Currently it's impossible to define name of the StatisticsInfoMBean, all created instances are always bound to StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME = org.hibernate.search.jmx:type=StatisticsInfoMBean.
From ImmutableSearchFactory:

Environment

Hibernate 3.6.9.Final

Assignee

Hardy Ferentschik

Reporter

Jakub Białek

Labels

None

Suitable for new contributors

Yes, likely

Pull Request

None

Feedback Requested

None

Fix versions

Affects versions

Priority

Major
Configure