Developing Java EE applications using myeclipse: Creating EJB 2 Session Bean Project with Xdoclet (i)

Source: Internet
Author: User

"MyEclipse Latest version download"

First, create an EJB project

1. Select File>new Project, select EJB Project, and then click Next.

2. Enter FIRSTEJB in the Project Name field.

3. Select the EE 1.3 option for the specification level, select MyEclipse Generic runtime for EE 1.3 from the drop-down list in the target runtime, and click Next.

to create a new EJB project

Project name – must be a valid Eclipse Java project name.

Location – Uncheck the box to specify a place for the custom file system for the new project and its resources.

Directory – The project's default file system location is located under the MyEclipse Startup Workspace folder, and you can select a different file location outside the workspace folder.

Note: You cannot select an alternate folder in the workspace folder because Eclipse does not allow this.

The source folder –java will contain the Java package, the *.java file, and the properties file. The contents of this folder are added to the project's Java build path.

Note: If you specify a non-default value, you need to update the Xdoclet default settings in this document accordingly.

JEE Specification level – Specify the JEE specification compliance levels. Ensure that the appropriate specification level is selected for the JEE functionality required by your application, and that your target deployment Application Server supports this specification level.

4. Click the default source folder, and then click Edit. Change the folder name to SRC, and then click OK.

Rename source folder

5. Click Next and uncheck the Generate Scaffolding code check box.

Disabling Scaffolding generation

6. Click Finish. The remaining wizard pages are imported from the MyEclipse EJB project template, which is defined in the MyEclipse JEE project parameter.

Depicts the new EJB project structure. The newly created EJB project contains a default Ejb-jar.xml file, but during this process, no EJB exists, and the Ejb-jar.xml file appears with an error token. The required EJB definitions are then created using Xdoclet technology.

EJB Project Structure For more information, please visit MyEclipse Chinese network >>

Developing Java EE applications using myeclipse: Creating EJB 2 Session Bean Project with Xdoclet (i)

Related Article

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.