BackPrevious Page Next PageNext

Configuring in a Standalone Environment

Configuring via server UI

Configuring in dbconfig.xml

This document presents the two ways of configuring the server database in a standalone environment: via the JReport Server UI, or using the configuration file dbconfig.xml.

Configuring via server UI

  1. In the JReport Server console, point to Administration on the system toolbar, and then click Configuration > Server DBSystem DB/Realm DB/Profiling DB from the drop-down menu to open the corresponding page.
  2. Select a realm if you are configuring the realm or profiling database from the Select Realm drop-down list at the top right corner.
  3. In the Configuration tab, select a database driver from the Driver drop-down list.

    Configure System DB

    For MS SQL Server 2005 and later versions, select the driver com.microsoft.sqlserver.jdbc.SQLServerDriver from the drop-down list; select com.microsoft.jdbc.sqlserver.SQLServerDriver for versions earlier than MS SQL Server 2005.

  4. In the Driver Class Location text field, type or click the Browse button to specify the location for the driver class.

    For the HSQLDB and Derby databases, you do not need to specify the driver class location. For all other databases, you will have to provide the driver class path information unless it has already been added to the class path during installation or by editing the setenv.bat file (setenv.sh on Unix) in <install_root>\bin.

  5. Type a valid URL that can be used to establish a connection to the database. The valid format of the URL should be provided by the driver vendor.
  6. Provide the user ID and password.
  7. To test the connection, click Test. To update the database configuration and to apply the settings, click Update and then restart the server to finalize the function. All previously published reports and all other information on users, groups and roles will be lost when you restart.

Configuring in dbconfig.xml

You can configure the server database in dbconfig.xml located in <install_root>\bin using either of the following two methods. Note that in dbconfig.xml, <database name> must be JReport Server's inner database name: systemtables for the system database, realmtables for the realm database, or profile for the profiling database.

Method 1: Specifying the URL, driver, user and password respectively

<database name="systemtables/realmtables/profile">
    <url>...</url>
    <driver>...</driver>
    <user>...</user>
    <password>...</password>
</database>

The configuration via this method can also be modified in the server console.

Below are three examples for your reference:

Method 2: Specifying a JDBC data source using the <datasource></datasource> tags

The URL format of a JDBC data source is:

jdbc://[<jdbc-user:jdbc-password>@]<jdbc-url>[#<attribute-name=attribute-value>,]

For example:

<database name="systemtables/realmtables/profile">
    <datasource>
        jdbc://user:password@jdbc:odbc:jreport-realmtables#driver=sun.jdbc.odbc.JdbcOdbcDriver
    </datasource>
</database>

Notes:

BackPrevious Page Next PageNext