Create the JAX-RS 1.1 REST service and Java EE modules
- In the Java EE perspective select File > New > Dynamic Web Project.
- In the Dynamic Web Project dialog, enter
LegacyBankAppWebas the project name. - In the Target runtime drop-down menu, select WebSphere Application Server V8.0.
- In the Configuration drop-down menu, select IBM JAX-RS Configuration.
- In the EAR project name drop-down menu, enter
LegacyBankAppEARas the EAR Project to deploy the newly created Web Module and click Next (Figure 28).
Figure 28. Dynamic Web Project Creation dialog
- In the Configure Project for Java Application dialog (Src Folder
dialog), leave all fields as default and click
Next (Figure 29).
Figure 29. Dynamic Web Project Src Folder dialog
- In the Web Module Settings dialog, check the Generate
web.xml deployment descriptor box and click
Next (Figure 30).
Figure 30. Dynamic Web Project Module Settings
- In the JAX-RS Capabilities dialog, leave all fields as default and
click Finish (Figure 31).
Figure 31. Dynamic Web Project JAX-RS Settings dialog
- If prompted to Open the Associated Perspective (i.e. Web Perspective) click No.
- In the Enterprise Explorer View, expand the LegacyBankAppEAR project, right click on the LegacyBankAppEAR > LegacyBankAppEAR > Utility JARs and select Modify.
- In the Properties for LegacyBankAppEAR window, click on
Deployment Assembly and in the EAR Module
Assembly pane, click Add (Figure 32).
Figure 32. EAR Module Deployment Assembly
- In the Select Assembly Directive Type dialog, select
Project and click Next
(Figure 33).
Figure 33. EAR Module Deployment Assembly: Select Assembly Directive dialog
- In the Select Project to include dialog, select
LegacyBankAppWrapperService project and while
pressing the CTRL Key also select the
LegacyBankApp project and click
Finish (Figure 34).
Figure 34. EAR Module Deployment Assembly: Select Projects dialog
- Confirm that the LegacyBankAppWrapperService and
LegacyBankApp project appear in the EAR
Module Assembly pane and click OK (Figure 35).
Figure 35. EAR Module Deployment Assembly: Utility Projects and Packaging
- In the Enterprise Explorer view, confirm that the Utility JARs
have been added to the EAR file as shown in Figure 36.
Figure 36. LegacyBankAppEAR Utility JARs
- In the Enterprise Explorer view, right click on the LegacyBankAppWeb project and select Build Path > Configure Build Path….
- In the Properties for LegacyBankAppWeb window, click on
Projects tab and then click on
Add (Figure 37).
Figure 37. LegacyBankAppWeb Java Build Path
- In the Required Project Selection dialog, select the
LegacyBankAppWrapperService project and click
OK (Figure 38).
Figure 38. LegacyBankAppWeb Java Build Path Select Projects dialog
- The Java Build Path should now include the
LegacyBankAppWrapperService project as shown in Figure 39.
Figure 39. LegacyBankAppWeb Updated Java Build Path
This completes the steps required to create the associated artifacts and Java EE Modules for the legacy bank application’s JAX-RS 1.1 REST Service.






