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

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 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.