BEA Systems Logo Banner Arc  
  Parent Bean Sample


Parent Bean Sample

The parent bean sample and the child bean together sample show subclassing an EJB. Each samples shows a stateless session bean. The parent bean contains methods that are overwritten by the subclassed child bean and the methods that are specific to the parent bean.

Main Directory Location

The following directory contains the Java source files and XML based deployment descriptors.

Windows NT:

$TUXDIR\samples\j2ee\ejb\subclass\parent 

UNIX:

$TUXDIR/samples/j2ee/ejb/subclass/parent 

A common build script is provided for all the EJB samples and it can be found in the following directory:

Windows NT:

$TUXDIR\samples\j2ee\ejb 

Unix:

$TUXDIR/samples/j2ee/ejb 

Files

The following table lists and describes all the files for this sample application:

File Description

ejb-jar.xml

The XML deployment descriptor file used to add the bean to the EJB container

weblogic-ejb-extensions.xml

The file containing the WLE extensions to the deployment descriptor DTD

Client.Java

The Java source code for the client

ParentBean.java

The Java source code for the stateless session bean. This class contains the business logic method implementations and methods required by EJB 1.1 specification.

Parent.java

The Java source code for the Remote interface of the ParentBean class

ParentHome.java

The Java source code for the Home interface of the the ParentBean class

Utility Files

The following table lists and describes the utility files for this sample application. These files are generated based on the WLE installation environment. Since a common build script is provided for all the EJB samples, instructions to build and execute the samples are provided later in Building and Running the EJB Sample Applications. The following files generated in the same directory as where the source files are found.

File Description

runme.cmd

The Windows NT batch file that contains commands to set the environment, boot the server, and execute the client for this sample

runme.ksh

The UNIX Korn shell script that contains commands to boot the server and execute the client for this sample

run_client.cmd

The batch file to run the client on Windows NT systems

run_client.ksh

The script file to run the client on UNIX systems

setenv.cmd

The batch file to set the necessary environment variables on Windows NT systems

setenv.ksh

The script file to set the necessary environment variables on UNIX systems

ubbconfig

The WLE server configuration file to be used on UNIX systems

ubbconfig.nt

The WLE server configuration file to be used on Windows NT systems

ejb_subclass_parent.jar

The ejb-jar file that contains the source file classes, the container-specific class files generated by the ejbc command, and the deployment descriptor files. This is the ejb-jar file that is deployed on the WLE server.

Building and Running the Sample Application

See the topic Building and Running the EJB Sample Applications for information about how to build and run the parent bean sample application.

Javadoc

The javadoc for the stateful session bean sample is available at the following location:

Package samples.j2ee.ejb.subclass.parent

 
 
    BEA Home | Corporate Info | News | Solutions | Products | Partners | Services | Events | Download | How to Buy
 Copyright © 1999, BEA Systems, Inc. All rights reserved.
 Contact BEAdocsupport@beasys.com