title: How to change domain name in Glassfish generated urls?
body: <p>my Glassfish instance uses my Windows computer name as domain name in urls, as so :</p>
  
  <pre><code>http://mymachine-567125f:8080/TemplateEJBService/TemplateEJB
  </code></pre>
  
  <p>Obviously, <code>mymachine-567125f</code> is not known of any DNS, and as a consequence, url directly leads to the deepest void of intergalactic space.</p>
  
  <p>So, is there a way to tell glassfish to instead use <code>localhost</code>, or even my ip address, for its generated urls ?</p>