Tutorials > Program model > Add a finder to an existing entity bean

< Previous | Next >


Import the Order bean

In this step we will import the Order-OrderCaptureData.jar file into Rational Application Developer. The Order-OrderCaptureData.jar file contains the Order bean to which we will add a new finder.

To import the Order-OrderCaptureData.jar:


Procedure

  1. Open WebSphere Commerce Developer, if it is not already open.

  2. Stop the WebSphere Commerce test server.

  3. Click File > Import.

  4. From the Select an import source list, select EJB JAR file.

  5. In the EJB Jar Import window:

    1. From the EJB Jar file list, enter or browse to WCDE_INSTALL \wc.modules\ejbs\ databasetype\Order-OrderCaptureData.jar , where databasetype is the database type you use in the development environment. The EJB project, Target server, and EAR project fields are populated automatically.

    2. From the EAR project list, select WC.

    3. Click Finish. It may take a few minutes for Rational Application Developer to import the JAR file and rebuild the workspace. Errors will display in the Problems view. You will fix these errors by correcting the Java build paths in the next step.

< Previous | Next >


+

Search Tips   |   Advanced Search