Step 2: Assemble the application
Use the application assembly tool to package the HitCount sample application for WebSphere Application Server. Application assembly is the process of creating an enterprise archive (EAR) file that contains all of the files related to an application.
Prepare the HitCount sample application
Locate the HitCount sample application files, and copy them into your own directory.Compile the enterprise bean files
Compile the enterprise bean files into .class files.Compile the servlet
Compile the HitCount servlet files into .class files.Package the Web application files
The application assembly tool requires a JAR file for input when creating a Web module. Package the HitCount servlet and JSP files into a JAR file.Assemble the EJB module
Use the application assembly tool to create an EJB module for use by a Web module.Assemble the Web module
Assemble your Web application JAR file and your enterprise bean JAR file into a WAR file.Assemble the application into an Enterprise Archive file
Assemble your JAR files and your WAR file into an EAR file, which is used to deploy the application to your WebSphere Application Server instance.