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