Chapter 25. Session Bean Examples

Session beans are powerful because they extend the reach of your clients into remote servers yet are easy to build. In Chapter 24, 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

Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.