Book Image

Java EE 7 Development with NetBeans 8

By : David R Heffelfinger
5 (1)
Book Image

Java EE 7 Development with NetBeans 8

5 (1)
By: David R Heffelfinger

Overview of this book

Table of Contents (18 chapters)
Java EE 7 Development with NetBeans 8
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a session bean in NetBeans


Session beans can be created in three types of NetBeans projects: Enterprise Application, EJB Module, and Web Application. EJB Module projects can contain only EJBs, whereas Enterprise Application projects can contain EJBs along with their clients, which can be web applications or "standalone" Java applications. The ability to add EJBs to web applications was introduced in Java EE 6. Having this ability allows us to simplify packaging and deployment of web applications using EJBs. We can now package the web application code and the EJB code in a single Web Archive (WAR) file, whereas with previous versions of Java EE and J2EE, we had to create an Enterprise Archive (EAR) file.

When deploying enterprise applications to the GlassFish application server included with NetBeans, it is possible to deploy standalone clients as part of the application to the application server. These standalone clients are then available via Java Web Start (http://www.oracle.com...