Client types

There are several different types of clients that access EJBs in a WebSphere Application Server Version 5 and the J2EE programming environment.

Session beans

A session bean can be looked at as being a client of the entity beans it accesses. In most cases these beans run in the same EJB container and can use local interfaces.


Servlets can interact with EJBs through remote or local interfaces. A suggested approach is that servlets only interact with session beans, and the session beans interact with entity beans. To access session beans, the servlet can use either remote or local interfaces; for portability, remote interfaces are suggested.

The servlet is a typical thin-client implementation where the user front end is ...

Get EJB 2.0 Development with WebSphere Studio Application Developer now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.