Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: Automatic Schema Generation
- Next: Using the capture-schema Utility

## Automatic Database Schema Capture

You can configure a CMP bean in Application Server to automatically capture the database metadata and save it in a `.dbschema` file during deployment. If the `sun-cmp-mappings.xml` file contains an empty `<schema/>` entry, the `cmp-resource` entry in the `sun-ejb-jar.xml` file is used to get a connection to the database, and automatic generation of the schema is performed.

Note –

Before capturing the database schema automatically, make sure you have a properly configured CMP resource. See Configuring the CMP Resource.

- Previous: Automatic Schema Generation
- Next: Using the capture-schema Utility

- © 2010, Oracle Corporation and/or its affiliates