Java Reference
In-Depth Information
the assignments. Then it removes the entity. The application client's message
listener retrieves the information.
Figure 21-4
illustrates the structure of this application. Of course, an actual HR applica-
tion would have more components; other beans could set up payroll and benefits records,
schedule orientation, and so on.
FIGURE 21-4. An Enterprise Bean Application: Client to Message-Driven Beans to
Entity
message from the client.
OfficeMDB
then creates and persists the
SetupOffice
entity
and stores the office information.
EquipmentMDB
then finds the entity, stores the equip-
ment information, and learns that the entity has completed its work.
EquipmentMDB
then sends the message to the reply queue and removes the entity.