title: NetBeans - "sun-resources.xml" vs. "glassfish-resources.xml"
body: <p>Do you know how Netbeans decides which filename to use for the application-scoped resources: <em>sun-resources.xml</em> or <em>glassfish-resources.xml</em>?
  Is this name configurable or hard-coded?</p>
  
  <p>As far as I understand GlassFish supports <em>sun-resources.xml</em> for backward compatibility. But according to "Application Deployment Guide" preferred filename is <em>glassfish-resources.xml</em>.</p>
  
  <p>I run relatively recent version of Netbeans - 8.0.2 with GlassFish 4.1, but I get generated <em>sun-resources.xml</em> file. This looks odd and confusing.</p>
  
  <p>On the other hand I've seen people having troubles with <em>glassfish-resources.xml</em>:
  <a href="https://netbeans.org/bugzilla/show_bug.cgi?id=243034" rel="noreferrer">https://netbeans.org/bugzilla/show_bug.cgi?id=243034</a>.
  And the recommended solution is to rename <em>glassfish-resources.xml</em> to <em>sun-resources.xml</em> - also contradicting with GlassFish recommendations.</p>
  
  <p>Best Regards</p>