The easiest way is to not install the management feature.
Else, you can take a look on the KarafTestSupport where we use getAvailablePort() method.
Regards JB On 04/27/2016 07:09 PM, Benson Margulies wrote:
I'm using pax-exam to test a karaf assembly that contains the management feature. Is there some way to disable all the JMX without uninstalling the feature, or do I need to just randomize the ports?
-- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
