This article will detail the basics of developing enterprise applications using EJB 3.0 technology, and EJB 3.0 is part of the Java EE 5 platform. This article will also explain how to simplify the process of developing enterprise applications through EJB 3.0 technology. This article is using the NetBeans IDE 6.0 release.
Prerequisite
This article assumes that you have basic knowledge and programming experience in the following areas:
Java programming
NetBeans IDE
The software required for the tutorial
For this tutorial, you need to install the following software on your computer:
"Web & Java EE" or "all" download version of NetBeans IDE 6.0 (download)
Java Standard Development Toolbox (JDK) version 5.0 or 6.0 (download)
GlassFish V2 Application Server (binding full IDE download) or Sun Java System Application Server platform version 9 (download)
For this tutorial, you need to register a local instance of the Glassfish/sun Java System application Server and its IDE.
Establishing an Enterprise Application project
The goal of this exercise is to create an NEWSAPP enterprise application project that contains an EJB module and a Web module. The NEWSAPP application uses a message-driven bean to receive and process messages that the servlet sends to the queue. The application uses Servlets to send messages to the message-driven bean to display the message.
Creating an Enterprise Application
Select File> New Project (CTRL-SHIFT-N) from the main menu.
Select Enterprise application from the Enterprise category and click the Next button.
Name the project NEWSAPP and set the server as Sun Java System application Server.
Set the Java EE version to Java EE 5, and then select Create EJB module and create WEB application module (if unchecked).
Click the Finish button.