Re: How can i listen two or more port in an app?


Matthew Sykes <matthew.sykes@...>
 

With DEA's, you can't. With Diego, you can look at the new TCP routing
support [1] if you want the port to be accessible to everyone, all the
time, or ssh port forwarding [2] if you only want someone in the developer
role to access the imx port.

For the latter, you can look at [3] for an example of how to configure the
JVM and how to use the port forwarding mechanisms of the client.

[1]: https://github.com/cloudfoundry-incubator/routing-api-cli
[2]: https://github.com/cloudfoundry-incubator/diego-ssh
[3]: http://sykesm.mybluemix.net/posts/jmx-in-diego/

On Tue, Nov 3, 2015 at 4:28 AM, yancey0623 <yancey0623(a)163.com> wrote:

Dear all!

How can i listen two or more port in an app? such as my Java app include
two port: one is process web request and another one is a jmx port.
--
Matthew Sykes
matthew.sykes(a)gmail.com

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.