HTBanking Corporation currently controls all access to banking information via a legacy Java application hosted out of its main headquarters. Banking subsidiaries are required to submit manual documents and forms requesting account information when processing loan requests. Account Reps located at the HTBanking main office then process these requests using a Java Swing application hosted on their personal workstations.
After careful review of implementation and deployment options for the expanded interfacing solution, the HTBanking IT Team decided on IBM® WebSphere® Application Server V8.0. Application Server provides support for simplified development of REST applications using the Java API for RESTful Web Services (JAX-RS) 1.1. In tandem the development teams will implement the solution using Rational® Software Architect which provides tooling to design, develop, test and package JAX-RS 1.1 REST applications for deployment to Application Server.
The design pattern and code artifacts used and delivered as part of the solution are shown in Figure 1.
Figure 1. Design pattern: Enabling legacy applications as REST Web Services using JAX- RS 1.1
An overview of the sections in this tutorial and the steps for implementing the solution are:
- Import the legacy application code and supporting services (XML and JSON Helpers)
- Configure the WebSphere Application Server V8 runtime environment
- Create the JAX-RS 1.1 REST service and Java EE modules
- Implement the JAX-RS 1.1 application configuration and resource classes
- Modify the Web module deployment descriptors
- Deploy the solution to the runtime test environment
- Verify the solution with REST HTTP Client
OPTIONAL: If you are more inclined you can import the complete solution
(extract the archive file
from the sample artifacts provided in the Download section of this tutorial and skip to Deploy the solution to the runtime test
environment). However you must first configure a runtime
environment as described in Configure the WebSphere
Application Server V8 runtime environment.