13.07.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. The transfer servlet is the controller between the presentation and thebusiness logic represented by enterprise Java beans (EJB). The servletprocesses the request.4. The servlet uses a singleton helper class (TransferHelper) to look up andstore the reference to the Transfer session EJB.5. The Transfer EJB updates the branch account at the back-end using theBranchAccount entity EJB, then sends a message to the queue,itsobankTransferQ, to update the other branch account.6. Same as the corresponding step for “customer transfer”.7. The message triggers the IncomingTransfer message-driven bean (MDB) thatpicks up the message to process the account update for the branch account.8. The MDB does not perform business logic, it uses the Transfer EJB for thispurpose.9. The Transfer EJB uses the BranchAccount entity EJB to update the back-enddatabase.The last process described here is the account balance query. A J2EE clientapplication is also distributed with the sample that performs the query process. Itis a simple GUI application that the user can use to interact with the J2EEapplication running on the server.J2EE Application::AccountViewer1Bean::ConsultationHelper2Stateless Session EJB::Consultation3 3Entity EJB::BranchAccountEntity EJB::CustomerAccountFigure A-4 Account balance query processAppendix A. Sample application 449

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

Saved successfully!

Ooh no, something went wrong!