The book examples are application server agnostic. The book example uses GlassFish for deployment, but the examples can be deployed on other application servers with little or no modification.
Having said that, a few GlassFish specific tips are given throughout the book, since the integration between GlassFish and NetBeans is very nice, therefore I thought it was worth mentioning some of the things that can be done with the NetBeans/GlassFish combo, such as the creation of JDBC connection pools, datasources and JMS resources straight from NetBeans, without having to go to the GlassFish console or using GlassFish's asadmin command line tool.
Author, <a href="http://www.packtpub.com/java-ee5-development-with-netbeans-6" target="_blank" rel="nofollow">Java EE 5 Development with NetBeans 6</a>
subject: Java EE 5 Development with NetBeans 6 - app.server coverage?