NetBeans 7.3 is almost ready. I guess, it takes just a few day until it is available. Even though this version offers new great features , one thing is still missing: Support for Java EE7. You may wait for an update – or try the development version. This article describes, how to setup NetBeans with GlassFish 4 for use as early Java EE7 environment.
First of all, download latest NetBeans EE7 version  and GlassFish 4 . GlassFish comes in different versions. This article describes the usage of the zipped full (non-web only) version. As time of this writing this is glassfish-4.0-b74.zip.
Unpack both packages to a directory of your choice. Using windows, this might be “c:\”. In this case, NetBeans will be located in “c:\netbeans” and GlassFish in “c:\glassfish3″. Astonished why GlassFish still resides in a folder named “3”? Me too.
Within the netbeans dir, locate bin and start NetBeans by the appropiate file (one of the exe files if you use Microsoft Windows, the shell script if using Linux. On Linux, remember to set this executable if isn’t). When NetBeans is up and running, choose file > new project > Java Web. You may notice, the project typs are displayed in grey. NetBeans offers to activate this feature. Choose activation and then cancel the wizzard.
Next choose tools > servers (without activation in previous step there is no such option) and “Add Server…”. In the following dialog choose GlassFish Server.
Browse to your GlassFish location. NetBeans detects it as GlassFish Server 4.0. Click onto Next two times. No your NetBeans is operates on the bleeding edge…
BTW: You may add GlassFish4 to your existing NetBeans. This allows you to use EE7 too, but without support by the IDE.
Observe my tutorial  soon being continued with JEE7/JSF2.2 stuff.