This three-part tutorial walks you through building a multi-tier web application from scratch, using IBM® Rational® Application Developer, the Java Persistence API (JPA), Enterprise JavaBeans (EJBs), REST web services, and — for a rich Web 2.0 front end — the Dojo Toolkit. You'll end up with a fully functioning web application that displays data in a table that users can edit by double-clicking any cell.
Rapidly build a rich three-tier web app, Part 1: Build the database- The application architecture uses REST services to decouple the UI from the server, and it uses EJBs and JPA to provide a correctly tiered enterprise application. Some of these layers are unnecessary for the sample application, but the intent is to provide a well-architected example that can be scaled for a more challenging problem space. The high-level steps the tutorial follows are:
- Build the database (Part 1).
- Create the data access and EJB tiers (Part 2).
- Build REST services for displaying and modifying the data and a rich Web 2.0 interface to use the services. (Part 3).
Deploy the application to the IBM Bluemix platform-as-a-service. (Part 3).
Rapidly build a rich three-tier web app, Part 2: Build the application tier- In part two of this three-part tutorial, learn how to use IBM Rational Application Developer and IBM Bluemix to rapidly build and host a multi-tier Java Enterprise Edition (JEE) app. Find out how you can save time in each stage: creating the data model and database, generating the data access code using the Java Persistence API (JPA), writing the Enterprise JavaBeans (EJBs) and web services, and using Dojo to create a rich web UI for viewing and modifying the data. When the application is complete, you'll deploy it to IBM Bluemix, the IBM Platform as a Service (PaaS).
Rapidly build a rich three-tier web app, Part 3: Create a rich web UI- In Part 1 you created a database on IBM Bluemix, connected to it from Rational Application Developer, and populated it with sample data. In Part 2, you created the application tier consisting of an EJB for managing the business logic and Java Persistence API (JPA) entities for interacting with the database. Here in Part 3 you'll expose the EJB methods as REST web services and build an editable Dojo data grid for viewing and modifying the data. Finally, you'll deploy the application to IBM Bluemix.