Tutorials > Program model > Add a finder to an existing entity bean
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
- Open WebSphere Commerce Developer, if it is not already open.
- Stop the WebSphere Commerce test server.
- Click File > Import.
- From the Select an import source list, select EJB JAR file.
- In the EJB Jar Import window:
- 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.
- From the EAR project list, select WC.
- 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.