< Previous | Next >

Importing the EJBs

Enterprise JavaBeans (EJBs) are reusable software components that are useful for executing tasks. You will be using the EJBs to start the loan application through JavaServer Pages (JSPs).

To import the EJBs, follow these tasks:

Creating the web project

To test the application through a JSP interface, you need to create a web project.

To create the web project, follow these steps:
  1. Click File > New > Other > Web > Dynamic Web Project. If you don't see the Web folder, click the Show all Wizards checkbox. In the Confirm Enablement dialog, check the Always enable capabilities and don't ask me again checkbox and then click OK.
  2. Click Next and in the Name field type LoanApplicationModuleWebApp.
  3. Click Show Advanced.
  4. In the EAR project field, select LoanApplicationModuleApp and click Next.
  5. In the Available dependant JARs table, click the checkboxes beside LoanApplicationModule.jar and LoanApplicationModuleEJB.jar
  6. Click Finish. In the Confirm Perspective Search dialog, click No.
  7. Click File > Save.

Importing the EJBs

To import EJBs to test the application, follow these steps:
  1. From the Business Integration view, right-click LoanApplicationModule and select Import. The Import window opens.
  2. Select File system and then Next.
  3. In the From directory list, type <WSInstallDir>\wstools\eclipse\plugins\com.ibm.wbit.samples.content_6.0.2\scenarioparts\loanapplication\web\bean where <WSInstallDir> is the product's installation directory.
  4. In the navigation tree, select the bean folder and click the check box beside it to select both IndexBean.java and Invoker.java.
  5. In the Into folder field, type LoanApplicationModuleWebApp\JavaSource\bean and select Create selected folders only.
  6. Check the Overwrite existing resources without warning checkbox and click Finish.
    Import the EJBs from the file system
  7. Click File > Save.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous | Next >