Chapter 8. Configuring the Default Database
8.1. Hypersonic Database
8.2. Hypersonic is Not Supported
- No transaction isolation thread and socket leaks (connection.close() does not tidy up resources)
- Persistence quality (logs commonly become corrupted after a failure, preventing automatic recovery)
- Database corruption stability under load (database processes cease when dealing with too much data)
- Not viable in clustered environments
8.3. H2 Database
8.4. Database Configuration Tool
SOA_ROOT/jboss-as/tools/schema/ directory) is an Apache Ant script. It sets the database to be used by the JBoss Enterprise SOA Platform. A list of the supported databases can be found at http://www.jboss.com/products/platforms/soa/supportedconfigurations/.
8.5. Configure a Database for Production System Use
Prerequisites
- Apache Ant
- the database that you wish to use must already exist
- a user with permission to make changes to that database must already exist.
- the JDBC driver JAR file for the database must be in the server configuration's
lib/directory.
Warning
Back Up Your Server Profile
Make a copy of the server profile for which you plan to configure your database as the Database Configuration Tool modifies the configuration settings.cp -R SOA_ROOT/jboss-as/server/Profile /path/to/backup/folder.Running the Database Configuration Tool
Change to the directory containing the Database Configuration script:cd SOA_ROOT/jboss-as/tools/schemaRun Ant
Run theantcommand to launch the script.Enter Data
Following the prompts, enter the following information as it is requested:- the type of database being used,
- the name of the database,
- the host name or IP Address of the database,
- the TCP port being used for the database,
- the user name needed to access the database, and
- the password for this user account.
Note
You could also add these values directly to thebuild.propertiesfile (found in the same directory) before running the script. The Database Schema Tool will not prompt you for these properties if it finds you have already added them to the file.
The Tool updates the relevant configuration files and exits.
Important
to jbpm.esb/jbpm-ds.xml:
<datasources>
<local-tx-datasource>
<jndi-name>BPELDB</jndi-name>
...
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<new-connection-sql>SET TRANSACTION ISOLATION LEVEL SNAPSHOT;</new-connection-sql>
...
</local-tx-datasource>
</datasources>8.6. SOA_ROOT/jboss-as/tools/schema/build.xml
SOA_ROOT/jboss-as/tools/schema/build.xml contains the settings for the Database Schema Tool. It is used by the ant command to run through the database setting options.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.