Starting the PointBase Development Database
This tutorial describes how to start the PointBase database management system so that the MedRec application can use it to store application data.
In particular, the tutorial shows how to:
- Start the PointBase database.
- Use the PointBase console to view the tables in the database used by the MedRec application.
Note: The installation of PointBase shipped with WebLogic Server is already set up with the database tables and data used by the MedRec application. For information on viewing the already-created tables, see Step 2: Use the PointBase console to view the MedRec tables and data.
The tutorial includes the following sections:
Before starting this tutorial, create the MedRec domain and MedRec server instance. See Tutorial 1: Creating a WebLogic Domain and Server Instance for Development.
Follow these steps to start and use PointBase:
- Step 1: Start the PointBase database.
- Step 2: Use the PointBase console to view the MedRec tables and data.
Step 1: Start the PointBase database.
- Open a command prompt window.
- Change to the PointBase tools directory:
cd c:\bea\weblogic81\common\eval\pointbase\tools- Start the PointBase database by executing the following command:
startPointBase.cmd- Leave this command window open for as long as you want the PointBase database running. If you close the window, the PointBase database will shut down.
Step 2: Use the PointBase console to view the MedRec tables and data.
The installation of PointBase shipped with WebLogic Server is already set up with the database tables and data used by the MedRec application. To view these already-created tables, use the PointBase Console.
Note: You must start the PointBase database before you can start the PointBase console. See Step 1: Start the PointBase database.
- Launch the PointBase console:
From the Start menu:
Start
- > Programs- > BEA WebLogic Platform 8.1- > Examples- > WebLogic Server Examples- > PointBase ConsoleFrom a script:
- In a command-line shell, go to the bea_home\weblogic81\common\eval\pointbase\tools directory where bea_home is the main BEA home directory, typically c:\bea. For example, enter the following command:
cd c:\bea\weblogic81\common\eval\pointbase\tools- Invoke the startPointBaseConsole.cmd command to launch the PointBase console:
startPointBaseConsole.cmdThis command also sets the CLASSPATH to find the PointBase JAR files.
- In the Driver field, enter com.pointbase.jdbc.jdbcUniversalDriver.
- In the URL field, enter jdbc:pointbase:server://localhost/demo.
- In the User field, enter MedRec.
- In the Password field, enter MedRec.
- Click OK.
- In the left pane, expand Schemas
- > MedRec.- Browse the tables, triggers, views, and procedures that make up the MedRec database.
Use the scripts in the PointBase tools directory to start the database and invoke its console. See:
c:\bea\weblogic81\common\eval\pointbase\tools
The MedRec application uses the PointBase database management system:
- To store information about patients, physicians, and administrators who manage the workflow of the MedRec application.
- As the JMS JDBC store that contains persistent JMS messages.
Patient, Physician, and Administrator Data
The MedRec application uses container-managed entity EJBs to automatically persist information about patients, physicians, and administrators in the PointBase database. The following table lists these entity EJBs and the PointBase tables in which the information is persisted.
Persistent JMS Message Storage
The MedRec application uses persistent JMS messaging, which means that any JMS messages that are put in a queue are also stored in a database so that the messages can be retrieved in case a problem occurs (such as a server crash) before the message-driven bean is able to process them. The messages are stored in the following two PointBase tables:
- MEDRECJMSSTATE
- MEDRECJMSSTORE
These tables are generated automatically when you create the JMS JDBC store using the Administration Console and are used internally by JMS.
Related Reading
- PointBase Console Guide
- PointBase Developer's Guide
- PointBase System Guide
- Understanding Enterprise Java Beans (EJB)
- Designing EnterpriseJava Beans
- Entity EJBs