To open the sample project, we need to go to File | New Project , then select Samples
| Java Web from the categories list in the resulting pop up window. Once we
have selected Java Web from the categories list, a list of projects is displayed in the
Projects list, for this example we need to select the Servlet Stateless project. This
sample is a simple project, it uses both a servlet and a stateless session bean, which
gives us a chance to use both the GlassFish servlet container and its EJB container.
After clicking on the Next> button, we are prompted to enter a project name and
location, the default values are sensible.