Properties properties = new Properties(); properties.put("jmx.remote.credentials", new String[]{username, instance.getPassword()}); factoryBean.setEnvironment(properties);
Properties properties = new Properties(); properties.put("jmx.remote.credentials", new String[]{username, instance.getPassword()}); factoryBean.setEnvironment(properties);