I have a usecase wherein I can't hardcode the jmx port in the standalone.xml file. Basically I have a system with 100's and 100's of VM and and for scalability reasons I cant hardcode port. So we already have a system wherein we start the jmx(jmxrmi) server in any free/available port and advertise this port to a discovery system. Unfortunately it looks like using the standard jmxrmi connector is no more feasible with jbossas7.
Does anyone know :
If I can programtically start a remoting-jmx connector at a random port and get that port?
If I there's anyway I can get a standalone jmx client connect to a jmxrmi server running in jbossas7( I have programtically started the jmxrmi server)