JDBC Data Resource Configuration Document

Data resource configuration involves specifying information about a data resource including its location, its metadata and its driver classes. Configuration is done using a data resource configuration document.

Data resource configuration documents are written by OGSA-DAI service deployers.

A data resource configuration document includes information on the following:

For the remainder of this page we give an overview of the general format of the data resource configuration document used by a JDBC data resource accessor.

Example

<?xml version="1.0" encoding="UTF-8"?>
<dataResourceConfig
  xmlns="https://ogsadai.org.uk/namespaces/2005/10/config">
  <documentation>
    This is an example data resource configuration document for a
    MySQL relational data resource.
  </documentation>
  <!-- Metadata about the data resource -->
  <metaData>
    <!-- This element and its contents are optional. -->
    <productInfo>
      <productName>MySQL</productName>
      <productVersion>4</productVersion>
      <vendorName>MySQL</vendorName>
    </productInfo>
    <!-- Custom metadata -->
    <keywordlist>
      <keyword> frogs <keyword>
      <keyword> genome <keyword>
    </keywordlist>
  </metaData>
  <!-- Data resource authorisation information - Role Map -->
  <roleMap name="Name"
    implementation="uk.org.ogsadai.common.rolemap.SimpleFileRoleMapper"
    configuration="SomeDataResource/DatabaseRoles.xml"/>
  <!-- Manager of the connection to the DBMS -->
  <dataResource>
    <driver implementation="org.gjt.mm.mysql.Driver">
      <uri>jdbc:mysql://localhost:3306/ogsadai</uri>
    </driver>
  </dataResource>
</dataResourceConfig>

Specification

Element dataResourceConfig:

XML Schema

OGSA-DAI/schema/ogsadai/xsd/data_resource_config.xsd