Start of Content Area

Object documentation J2EE DCs  Locate the document in its SAP Library structure

J2EE development is split into the following parts. The J2EE development will usually go through these parts in the order they are specified here.

¡        EJB Module

¡        Web  Module

¡        Enterprise Application

Definition: EJB Module

An EJB Module DC contains the model classes (i.e. message driven bean, Container-Managed Persistence (CMP) Bean, Bean-Managed Persistence (BMP) Bean, stateful session bean or stateless session bean) for an Enterprise Application DC.

When you create an EJB Module DC, the SAP NetWeaver Developer Studio will automatically create a public part for assembly that contains the classes for the beans and a public part for compilation that contains the bean interfaces. You should not modify automatically generated public parts.

Note

"Public part" does not automatically mean that a jar-file is produced. 

Build Result

Compiled classes that can be used by an EJB Assembly DC.

Perspective/View

EJB ModuleDCs are best handled using the J2EE DC Explorer in the J2EE Perspective.

 

Definition: Web Module

A Web Module DC contains the files that belong to the view (and view-controller) part of an enterprise application project, such as JSPs, Servlets and Proxy classes for beans defined in an EJB project.

Since a Web DC usually depends on the public interfaces of one or more EJBs you simply add the EJB Module DCs to the Web DCs "Used DCs".

Build Result

A war file.

Perspective/View

Web DCs are best handled using the J2EE DC Explorer in the J2EE Perspective.

 

Definition: Enterprise Application

An Enterprise Application DC combines Web Module DCs and EJB Module DCs into an enterprise application. The product of an Enterprise Application DC is a deployable EAR file (Enterprise Application Archive).

There's not much work to do in an Enterprise Application. Basically you just reference public parts (purpose assembly) of EJB Module DCs and Web Module DCs and edit the deployment descriptor if necessary.

Build Result

An ear-file containing the WAR-file(s) from the Web Module DCs and the EJB files from the EJB Module DCs.

Perspective/View

Enterprise Application DCs are best handled using the J2EE DC Explorer in the J2EE Perspective.

 

 

 

 

End of Content Area