| Sun Java System Application Server |
The bmp-simple application provides a basic example of an application that uses bean-managed persistence (BMP) Enterprise JavaBeans (EJBs). The EJB uses a relational database, which requires you to register a JDBC resource, as described in the following instructions.
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/bmp/apps/simple.
bmp-simpleClient.jar.
bmp-simple.ear.
Follow this general procedure:
build.xml, is in the app_dir directory,
specifically, install_dir/samples/ejb/bmp/apps/simple.
install_dir/samples/ejb/bmp/apps/simple/bmp-simple.ear.
To run the application, execute the bmp-simpleClient.jar
in the application client container:
cd app_dir appclient -client bmp-simpleClient.jar
The appclient executable is located in install_dir/bin/appclient.
Copyright © 2006 Sun Microsystems, Inc. All rights reserved.