03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. The transfer servlet is the controller between the presentation and the<br />

business logic represented by enterprise Java beans (EJB). The servlet<br />

processes the request.<br />

4. The servlet uses a singleton helper class (TransferHelper) to look up and<br />

store the reference to the Transfer session EJB.<br />

5. The Transfer EJB updates the branch account at the back-end using the<br />

BranchAccount entity EJB, then sends a message to the queue,<br />

itsobankTransferQ, to update the other branch account.<br />

6. Same as the corresponding step for “customer transfer”.<br />

7. The message triggers the IncomingTransfer message-driven bean (MDB) that<br />

picks up the message to process the account update for the branch account.<br />

8. The MDB does not perform business logic, it uses the Transfer EJB for this<br />

purpose.<br />

9. The Transfer EJB uses the BranchAccount entity EJB to update the back-end<br />

database.<br />

The last process described here is the account balance query. A J2EE client<br />

application is also distributed with the sample that performs the query process. It<br />

is a simple GUI application that the user can use to interact with the J2EE<br />

application running on the server.<br />

J2EE Application::AccountViewer<br />

1<br />

Bean::ConsultationHelper<br />

2<br />

Stateless Session EJB::Consultation<br />

3 3<br />

Entity EJB::BranchAccount<br />

Entity EJB::CustomerAccount<br />

Figure A-4 Account balance query process<br />

Appendix A. Sample application 449

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!