Rational Developer for System z


Java/J2EE Build process and operational flow

The ARCHDEF contains the members that make up the Java/J2EE project and they are referenced by "shortnames" that correspond to the file names in the Eclipse workspace.

When the ARCHDEF is built, a pre-build verify language translator (J2EEANT) is invoked. The J2EE translator reads the J2EE build script, which is referenced in the ARCHDEF by the SINC keyword and overlays the coded properties into the skeleton ANT XML referenced by property SCLM_ANTXML. SCLM knows to invoke the J2EEANT translator for the build script because when the build script was generated by SCLM Developer Toolkit, it was stored in SCLM with a language of J2EEANT.

The ARCHDEF build process generates Java Classes from the Java source files and can also generate a J2EE archive file such as a JAR, WAR, or EAR. The J2EE object created depends on the appropriate build script referenced, and the use of the ARCHDEF keyword OUT1.

When the ARCHDEF is built, the pre-build verify language translator associated with the build script (in SCLM type J2EEBLD) runs and determines what parts of the ARCHDEF are required to be re-built (including nested ARCHDEFs). Those parts are then copied into the z/OSĀ® Unix Systems filesystem workarea and ANT compiles and generates the required Java/J2EE objects specified by the build script and ARCHDEF.

SCLM then processes each component with its associated language translator. The Language translator JAVA associated with Java source copies the class files created back into SCLM.

The ARCHDEF translator identifies the J2EE objects that have been generated (JAR, WAR, EAR) and copies these parts back into SCLM.

It is essential to create a separate ARCHDEF for each application component that makes an enterprise application (EAR) . In other words, an EAR which contains a WAR which contains an EJB JAR, should have an ARCHDEF for the JAR, an ARCHDEF for the WAR with an INCL of the EJB JAR ARCHDEF. The EAR ARCHDEF should also include an INCL of the WAR ARCHDEF.

The Java/J2EE build process supports:

Note:
  1. The Sample ANT skeletons are shipped and available in the SCLM Developer Toolkit sample library SBWBSAMP installed on z/OS.
  2. The following Build formats , SCLM Types and SCLM Languages may be more relevant to the SCLM administrator when assisting to create Java/J2EE projects in SCLM.

Terms of use | Feedback



This information center is powered by Eclipse technology. (http://www.eclipse.org)