Chapter 22. Session Bean Examples


22. Session Bean Examples

Session beans provide a simple but powerful way to encapsulate business logic within an application. They can be accessed from remote Java clients, web service clients, and from components running in the same server.

In Chapter 21, you built a stateless session bean named ConverterBean. This chapter examines the source code of three more session beans:

  • CartBean: a stateful session bean that is accessed by a remote client

  • HelloServiceBean: a stateless session bean that implements a web service

  • TimerSessionBean: a stateless session bean that sets a timer



The JavaT EE 5 Tutorial
The JavaT EE 5 Tutorial
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 309

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net