}
@Override
public void afterPropertiesSet() throws Exception {
try {
JMXControl control = (JMXControl) applicationContext.getBean("clientJMXControl");
if (control != null) {
final String[] instances = addressList.replaceAll(":", "_").split(",");
for (String instance : instances) {
control.registerMBean("CoUGAR.socket.transport.client:name=socketSessionFactory,instance=" + instance, sessionFactory);
control.registerMBean("CoUGAR.socket.transport.client:name=socketSessionRecycler,instance=" + instance, sessionFactory.getSessionRecycler());
}
}
} catch (Exception ex) {
LOG.log(Level.WARNING, "Error while registering socket session mbeans", ex);
}