GlassFish support in NetBeans
Netbeans support for Java EE 5 features is under way and it's easier to run on GlassFish. Builds of the Netbeans.next release are available now and contain annotation support, persistence support, Derby database integration, GlassFish resource creation and registration as well as all NetBeans 5.0 features.
To help you get started there are a couple of tutorials. One is a simple hello world application and the other a more advanced enterprise application using Java EE 5 persistence. See the GlassFish and Netbeans Integration page for more details