Value Object Sample

This sample demonstrates how value objects whose class definitions are auto-generated by WebLogic, can be used to limit network traffic between a client application and a set of EJBs arranged in a session façade pattern.

The following components are used in this sample:

Note. This sample shows only one possible way in which value objects can be used. For more information on value objects, data transfer object pattern, and the session façade pattern, see your favorite documentation on EJB design patterns.

Concepts Demonstrated by this Sample

Location of Sample Files

The code of the session bean is located in the valueObject folder of the EJBs project in the SamplesApp sample application. In the file system the location is:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\EJBs\valueObject\AdminBean.ejb

The code of the CMP entity beans is located in the finderMethods folder of the EJBs project in the SamplesApp sample application. In the file system the location is:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\EJBs\finderMethods

The page flow files, and the EJB control that you use to locate and reference the EJB, are located in the valueObject folder of the EJBs_ClientApps project in the SamplesApp sample application. In the file system the location of the JPF controller file is:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\EJBs_ClientApps\valueObject\Controller.jpf

To Run the Sample

  1. Start WebLogic Server in the appropriate domain.
  1. Launch the page flow controller either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/EJBs_ClientApps/valueObject/Controller.jpf in the address bar of your browser. If WebLogic Server is running in the appropriate domain on this machine, you may click here to run the sample.

Related Topics

@ejbgen:file-generation Annotation

@ejbgen:value-object Annotation