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.

  1. Prepare the HitCount sample application
    Locate the HitCount sample application files, and copy them into your own directory.

  2. Compile the enterprise bean files
    Compile the enterprise bean files into .class files.

  3. Compile the servlet
    Compile the HitCount servlet files into .class files.

  4. 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.

  5. Assemble the EJB module
    Use the application assembly tool to create an EJB module for use by a Web module.

  6. Assemble the Web module
    Assemble your Web application JAR file and your enterprise bean JAR file into a WAR file.

  7. 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.

Continue Next: Prepare the HitCount sample application