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 O’Reilly online learning.

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