Book Image

Java EE 5 Development using GlassFish Application Server

By : David R Heffelfinger
Book Image

Java EE 5 Development using GlassFish Application Server

By: David R Heffelfinger

Overview of this book

<p>GlassFish is a free, open-source Java EE 5-compliant application server that is quickly gaining massive popularity.<br /><br />This book explains GlassFish installation and configuration, and then moves on to Java EE 5 application development, covering all major Java EE 5 APIs.<br /><br /><span style="font-weight: bold;">Chapter 1</span> provides an overview of Glassfish, including how to install it, configure it, and verify the installation.<br /><br /><span style="font-weight: bold;">Chapter 2</span> covers how to develop server-side web applications using the Servlet API. &nbsp;<br /><br /><span style="font-weight: bold;">Chapter 3</span> explains how to develop web applications using JavaServer Pages (JSPs), including how to develop and use JSP custom tags.<br /><br /><span style="font-weight: bold;">Chapter 4</span> discusses how to develop Java EE applications that interact with a relational database system through the Java Persistence API (JPA) and through the Java Database Connectivity API (JDBC).<br /><br style="font-weight: bold;" /><span style="font-weight: bold;">Chapter 5</span> explains how to use the JSP Standard Tag Library (JSTL) when developing JavaServer Pages.<br /><br /><span style="font-weight: bold;">Chapter 6</span> covers how to develop applications using the JavaServer Faces (JSF) component framework to build web applications.<br /><br /><span style="font-weight: bold;">Chapter 7</span> explains how to develop messaging applications though the Java Messaging Service (JMS) API.<br /><br /><span style="font-weight: bold;">Chapter 8</span> covers securing J2EE applications through the Java Authentication and Authorization Service (JAAS).<br /><br /><span style="font-weight: bold;">Chapter 9</span> discusses how to develop Enterprise Java Beans that adhere to the EJB 3 specification.<br /><br /><span style="font-weight: bold;">Chapter 10</span> explains how to develop and deploy web services that conform to the JAX-WS 2.1 specification.<br /><br /><span style="font-weight: bold;">Chapter 11</span> covers frameworks that build on top of the Java EE 5 specification, including Seam, Facelets, and Ajax4Jsf.<br /><br /><span style="font-weight: bold;">The appendices</span> cover some of the advanced features of the GlassFish server.</p>
Table of Contents (18 chapters)
Java EE 5 Development using GlassFish Application Server
Credits
About the Author
About the Reviewers
Preface
IDE Integration

NetBeans


NetBeans Standard and Full editions contain "out of the box" support for GlassFish. When installing one of these editions of NetBeans, GlassFish is also installed. NetBeans can be downloaded from http://www.netbeans.org.

NetBeans has several project categories; Java EE applications can be created from the Web and Enterprise categories.

For most project types in the Enterprise or Web categories, NetBeans requires us to select an application server where the project will be deployed. GlassFish is labeled Sun Java System Application 9 in the drop-down box used to select a server.

Once we create the project and we are ready to deploy it, we simply need to right-click on the project and select Deploy Project from the resulting pop-up menu.

The project will be automatically built, packaged, and deployed. For web applications, we also get the Run Project and Debug Project options. Both of these options, in addition to building, packaging, and deploying the project, automatically open a new browser window and point it to the application's URL. When we select Debug Project, GlassFish will be started in debug mode, if necessary, and we can use the NetBeans debugger to debug our project.