SpringSource/spring-xd — pull request #154 by markfisher (2013-07-26 14:40:09+00:00)
Title: XD-430 different JMX port for admin and container

This is just an initial step, providing different default ports for the AdminOptions and ContainerOptions.

A better solution would allow for dynamic port allocation, at least on the Container side (since we're likely to have more than 1 Container instance). Since it's common to have only 1 Admin instance, that could keep the 8778 default, but apparently Jolokia will determine a port if you pass 0. So, we may want to pass 0 as the default for the Container... the only problem is we can only do that once we also know how to retrieve that info and make it available to the user (our current banner logging just displays the option value so would show 0). An alternative to that would be to use our own SocketFinder (there is one within Spring Integration, and in fact a revised version of that has moved to Spring core as of 4.0 M2).