Create enterprise applications

Before you can deploy your archive files onto an appserver, 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 (.war) archives (WAR), resource adapter archives (RAR), enterprise bean (EJB) JAR files, and application client archives (JAR) files.

  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, specify an EAR file name and location. To change the default project location, click Browse and specify a new location. Then, 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. 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.


See Also

Enterprise applications
Assembling applications with the Assembly Toolkit
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