Build EJB 3 with GlassFish v2, Apache Maven 2, and NetBeans IDE 6.0

Source: Internet
Author: User
Tags command line glassfish netbeans

Software Requirements

To create an EJB 3.0 application build environment, you need to use the following items:

GlassFish v2 b58d

NetBeans IDE 6.0 Nightly from 03.09.2007

Apache Maven 2.0.7

Mevenide2-netbeans plug-ins (NetBeans, MAVEN2 project support)

Assume that the above software is fully installed and functioning properly. The software installation method is to extract the files into the selected directory.

To install the NetBeans MAVEN2 Project Support plug-in, you need to start NetBeans IDE 6.0. Next, select the Tools > Plugins menu, select the Available Plugins tab from the dialog box that appears, and select the plugin.

The complete project can be obtained from ejb3-remove-stateless.zip.

Create a project structure

2.1 Creating a parent project--ejb3-remove-stateless

To make the project that the Apache Maven 2 (hereafter called m2) run more rational, we first create a parent project (the main project). Create a pom-type project that contains two subprojects--EJB bean modules and remote client modules.

We can also create the project manually-either by using the MVN command, or by using the NetBeans MAVEN2 Project Support plug-in. Using Plug-ins simplifies the environment creation process and makes it easier to use M2. With Plug-ins, we are able to perform most of the management functions at the IDE level. Currently, these functions are performed through the command line.

Suppose the NetBeans Maven2 Project support plug-in is installed properly, select the File > New Project menu, and then select Maven Project in the MAVEN category.

Click Next >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.