Home

 

Generating the sample Web application

To generate the simple Web Application, follow these steps:

In the Workbench, select File Æ New Æ Other Æ J2C Æ Web Page, Web Service, or EJB from J2C Java Bean.

In the Java EE Resource from J2C Bean dialog (Figure | 0-38) click Browse for the J2C Bean implementation and select CustomerImpl. Click Next.

Figure 20-38 J2C Java bean selection

In the Deployment Information dialog (Figure | 0-39), select Simple JSP and click Next.

Figure 20-39 Deployment Information

In Simple JSP Creation dialog, click New for the Web project field to create a new Web project.

In the Dynamic Web Project dialog, type RAD75SAPTestWeb as Project name and RAD75SAPTestWebEAR as EAR Project Name. Ensure that WebSphere Application Server v7.0 is selected for Target Runtime. Click Finish.

In the Simple JSP Creation dialog (Figure | 0-40), enter SampleJSP as JSP Folder. Click Finish.

Figure 20-40 Simple JSP Creation

After finishing with the Simple JSP Creation Wizard, you have the following two projects created in your workspace:

RAD75SAPTestWeb
RAD75SAPTestWebEAR

The RAD75SAPTestWebEAR project has to reference the CWYAP_SAPAdapter project. We configure this dependency by adding the CWYAP_SAPAdapter as a dependency to the EAR project:

In the Enterprise Explorer, right-click RAD75SAPTestWebEAR and select Properties. Select Java EE Module Dependencies and select CWYAP_SAPAdapter, then click OK.
Right-click RAD75SAPTestWeb and select Properties. Select Java EE Module Dependencies and select CWYAP_SAPAdapter.rar, then click OK.
ibm.com/redbooks