Description
When creating JMX connector (instead using platform one), we should be able to secure the access with username and password like:
<managementContext> <managementContext createConnector="true" connectorPort="2011" jmxDomainName="test.domain"> <property xmlns="http://www.springframework.org/schema/beans" name="environment"> <map xmlns="http://www.springframework.org/schema/beans"> <entry xmlns="http://www.springframework.org/schema/beans" key="jmx.remote.x.password.file" value="src/test/resources/jmx.password"/> <entry xmlns="http://www.springframework.org/schema/beans" key="jmx.remote.x.access.file" value="src/test/resources/jmx.access"/> </map> </property> </managementContext> </managementContext>