Modeling Session Bean Relationships

A session bean can have relationships with other components and classes, for example, JavaBeans, other session beans, servlets, and so on. Modeling of such relationships is discussed in this section.

Session Beans and Plain Java Classes

A session bean is just a pattern application to a set of Java classes, and there is nothing inherently unique about the individual elements that collectively make up a session bean. As such, the relationships between a session bean element and other Java classes are quite ordinary. For instance, an EJB implementation class could utilize a number of Java classes to fulfill its needs. In such cases, a session bean would invoke methods on a Java class just as another Java class ...

Get Developing Enterprise Java Applications with J2EE™ and UML 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.