Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Primary Presentation

...

Image Added

MS Visio file with this diagram

Element Catalog

<
<app>
> admin: Administration application. Corresponds to a Java rich client application that is launched via Java Web Start. It allows an administrator user to review and modify orders submitted by Pet Store clients.
<
<app>
> opc: Order Processing Center. It consists of server-side components that asynchronously receive and process orders submitted byusers through <
<app>
> petstore.
<
<app>
petstore: ecommerce application. It is a web application that allows Internet users to register, browse the catalog and place oders for pets. It is also referred to as the Storefront. A refinement view is available.
<
<app>
> supplier: Supplier dispatching center.
waf: Web Application Framework. Library that provides a façade to <
<app>
petstore to manipulate events, user actions and application controllers. Refinement view available
address : Package that contains an entity bean and auxiliary classes that represent the address of the user.
asyncsender : Package that contains a session bean and auxiliary classes that handle the connection to the Order Processing Center component using asynchronous communication.
cart : Package that contains a session bean and auxiliary classes that represent the shopping cart.
catalog : Package that contains an entity bean and auxiliary classes that represent the product catalog.
components: Library that provides the core (shared) components for the applications. Refinement view available
contactinfo : Package that contains an entity bean and auxiliary classes that represent the contact information of the user.
creditcard : Package that contains an entity bean and auxiliary classes that represent credit card information.
customer : Package that contains three entity beans and auxiliary classes that represent information about a customer (includes contact information and credit card)

...

According to Sun's documentation. The Web Application Framework (waf) and the Components are intended to be a layer below <

<app>

> petstore:


http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/sample-app/images/sample-app1.3.1a.gif
Sample Application Design. Figure 11.

Nevertheless this is not what happens in the code. <

<app>

> petstore does uses and extends J2EE classes (like the HttpSessionListener in the PetstoreComponentManager) and the EJB interfaces in the ShoppingClientFacadeLocalEJB. Additionally <

<app>

> petstore uses plenty of Java standard classes directly.


From Sun's documentation we get another diagram to analyze:
Image Removed Image Added
Source: Figure 11.6 Functional Modules for the Sample Application Web Site.

...