Table of Contents

About

Enterprise applications consist of a collection of projects which appear as siblings in the workspace. For every enterprise application you must create the following an enterprise application (EAR) project that serves as the assembly point for all of the projects in the application.

The Java code and other files of the application are then contained in additional projects:

  • dynamic web project(s),
  • web service project(s),
  • EJB project(s),
  • and/or utility project(s).

Nature

Projects have a specific nature associated with them via the .project file.

Example of Project file:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>hello_world</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.jdt.core.javanature</nature>
	</natures>
</projectDescription>

Enterprise application

When creating an enterprise application, the normal process is to

  • Create a new workspace for the application (optional)
  • Create an EAR project to link all of the application's projects
  • Create projects for the modules within the application
  • Create the project contents.