[Version 5.0.2 and later]Creating enterprise applications

Why and when to perform this task

Before you can deploy your archive files onto an application server, you must assemble them in an enterprise application archive (EAR) file. This article describes how to create a Java 2 Platform, Enterprise Edition (J2EE) enterprise application project using the Assembly Toolkit. After you create an enterprise application project, you can add (import) archive files such as Web application archives (WAR), resource adapter archives (RAR), enterprise bean (EJB) JAR files, and application client archives (JAR) files.

Steps for this task

  1. Start the Assembly Toolkit.
  2. Click File > New > Project. Or, if you are working in the J2EE perspective, click File > New > Enterprise Application Project and skip step 3a below.
  3. In the New Project dialog, create an enterprise application project:
    1. Click J2EE > Enterprise Application Project > Next.
    2. Specify whether you want an EAR file that supports J2EE 1.2 or 1.3, and click Next.
    3. On the Enterprise Application Project page:
      1. Specify an EAR file name and location.
      2. To change the default project location, click Browse and specify a new location.
      3. Click Next.
    4. (Optional)   On the EAR Module Projects page, select the existing modules that you want to add to the new enterprise application project.
      To create new modules for this enterprise application, click New Module. On the New Module Project page, select Create default module projects to create modules for application client, enterprise bean (EJB), Web or connector projects. You can use the default project names for the modules or specify different project names. If you clear the Create default module projects check box, you can select a single module type and proceed with the proper wizard for that project type. Then, click Finish to create the project modules and add their names to the list of available modules on the EAR Module Projects page.
    5. Click Finish.
    6. (Optional)   Confirm that you want to view the J2EE Hierarchy view.
  4. Verify the contents of the new enterprise application in either of the following ways:
    • In the J2EE Hierarchy view, expand Enterprise Application and view the new EAR file.
    • Click Window > Show View > Navigator to see the associated files for the enterprise application in a Navigator view.

Related concepts
Enterprise applications
Related tasks
Assembling applications with the Assembly Toolkit
Related topics
Developing and testing a complete J2EE "Hello World" application with WebSphere Studio V5
Developing and Deploying an End-to-end J2EE Application to JBoss Application Server using WebSphere Studio V5



Searchable topic ID:   tatk_create_ear
Last updated: Jun 21, 2007 9:56:50 PM CDT    WebSphere Application Server for z/OS, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/tatk_create_ear.html

Library | Support | Terms of Use | Feedback