| Sun Java System Application Server |
The SimpleBank EJB Subclassing application demonstrates subclassing beans as a way to simplify related
bean classes. This example has a parent bean that contains methods that
are unique or can be overridden by the methods in the child bean.
Notice that there are no properties defined for the parent bean in the sun-ejb-jar.xml
deployment descriptor: only the children have the properties defined.
A relational database is required to run this application.
Before you deploy or run the application, you must ensure that a database resource has been configured for
Application Server. The included asant deployment script automatically performs this step for you.
But if you are using another deployment mechanism, you must perform it manually.
You can use any JDBC-compliant relational database server, but specific instructions are provided for the following:
The general instructions for building, deploying, and running sample applications are provided in Building, Deploying, and Running Sample Applications. In reading this document, use the following application-specific variables for this application:
install_dir is the directory where Application Server
is installed.
app_dir is the application base directory: install_dir/samples/ejb/misc/apps/subclassing.
subclassing.ear.
Follow this general procedure:
build.xml, is in the app_dir
directory, specifically, install_dir/samples/ejb/misc/apps/subclassing.
install_dir/samples/ejb/misc/apps/subclassing/subclassing.ear.
To run the sample application, complete the following steps.
http://hostname:port/subclassing/index.html.123456789 in the Customer Social Security Number
field. Click Edit.You can verify the results by opening a SQL connection in a new window and running queries against the customer2 table.
Before redeploying the application again, please delete the jdbc resources with this command:
asant unsetup.
KNOWN ISSUE: While running the sample, entering decimal amounts against Savings Account and Checking Account may result in 500 internal error.
Copyright © 2006 Sun Microsystems, Inc. All rights reserved.