Importing EJB files

You can import an enterprise bean (EJB) JAR file and define a new EAR project and EJB module for the enterprise bean JAR file using the Assembly Toolkit.

  1. Start the Assembly Toolkit.

  2. Click File > Import.Alternatively, you can right-click EJB Modules in a view such as the J2EE Hierarchy view and click Import. Or, on Windows platforms, you can drag the enterprise bean JAR file and drop it on a view.

  3. In the Import dialog, specify the EJB JAR file and project name...

    1. Click EJB JAR file > Next.

    2. Specify the enterprise bean JAR file to import. Use Browse to locate the JAR file and specify its full path name.

    3. Specify an EJB project name. For example, if you are importing the HelloWorld.jar file, you might name the project HelloWorld. Click New, specify HelloWorld for the project name, specify whether you want to use the EJB 1.1 or 2.0 specification (EJB 2.0 is the default), and click Next.

    4. Name the EAR file into which to import the enterprise bean JAR file. The name must be unique among EAR files in the directory.

    5. Click Finish.

  4. Verify the contents of the new EAR file and EJB module in either of the following ways...

    • In the J2EE Hierarchy view, expand Enterprise Applications or EJB Modules and view the new modules.

    • Click Window > Show View > Navigator to see the associated files for the EAR file and EJB module in a Navigator view.

 

See Also

Assembling applications with the Assembly Toolkit