using sun-resources.xml will still work (though it is depreated), instead we recommend using glassfish-resources.xml.
As of today, one can use "add-resources" command and provide a resources xml (conforming to glassfish-resources.dtd) to create resources.
However, bundling the resource definitions as part of the archive is a feature support in progress.
[Message sent by forum member 'jr158900']
http://forums.java.net/jive/thread.jspa?messageID=475199