title: How to discover embedded Jetty port after requesting random available port?
body: <pre><code>Server server = new Server(0);   
  (..)
  server.start();
  // this returns _zero_ ?!?!
  int listeningPort = server.getConnectors()[0].getPort();
  </code></pre>
  
  <p>I'm using embedded Jetty 7 API. Passing zero to the Server(int) constructor cause Jetty to assign an available port automatically, how can i discover which port was assigned?</p>
  
  <p>I have read the docs, but cannot find this info.</p>
  
  <p>thanks..</p>