1. The client module requests some data by calling a method of the CatalogData EJB module. In this simple scenario, the client can request either a list of all the items in the catalog, or detailed information about one item.
2. The catalog data EJB module processes the request by generating a database query that will get the requested data.
3. The catalog data EJB module executes the query and returns the data to the client module. The client module then formats the data and displays it to the user.
參考答案:1. 客户组件藉由呼叫 CatalogData EJB 组件的一个方法请求一些数据。 在这个简单的情节中,客户能请求或一连串的所有项目在目录中, 或关于一个项目的详细资讯。
2. 目录数据 EJB 组件处理产生将会拿被请求的数据的一个数据库疑问的请求。
3. 目录数据 EJB 组件运行疑问而且归还数据给客户组件。 客户组件然后格式数据而且对使用者显示它。