2010년 8월 15일 일요일

2.2.3. Component Module Assembly Example

2.2.3. Component Module Assembly Example

Suppose we have a web application that maintains profiles for each user, and a profile
contains various preferences for the behavior of the application. The profile data is stored
in a database, and an EJB component is used to represent each profile within the
application. The application also includes a JSP web component that provides an editor
for profiles, where each user can specify his preferences. The JSP makes use of the profile
EJB to access the profile data stored in the database.
Given this architecture, our application needs a web component module to deploy the JSP
and an EJB module to deploy the profile EJB. Each of these modules will need its own
deployment descriptor and will be packaged into a jar file to be assembled into the final
application.