<?xml version="1.0" encoding="UTF-8"?>
<!-- (c) International Business Machines Corporation, 2002 - 2004.--> 
<!-- (c) University of Edinburgh, 2002 - 2004.-->
<!-- See OGSA-DAI-Licence.txt for licencing information.-->

<dataResourceConfig
     xmlns="http://ogsadai.org.uk/namespaces/2004/05/gdsf/config" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://ogsadai.org.uk/namespaces/2004/05/gdsf/config
     ../../schema/ogsadai/xsd/data_resource_config.xsd">
                                    
  <documentation>
  
    This is an example data resource configuration file for a relational
    data resource. It specifies, amongst other things, the URL to the data 
    resource, the database driver class name, and the activities that are
    supported by a Grid Data Service (GDS) created by a Grid Data Service 
    Factory (GDSF) configured with this file.
  
  </documentation>

  <!-- Metadata describing the data resource -->
  <metaData>
    <!-- These elements and their contents are optional -->
    <productInfo>
      <productName>MySQL</productName>
      <productVersion>3.23.42</productVersion>
      <vendorName>MySQL</vendorName>
    </productInfo>
    <relationalMetaData>
      <databaseSchema callback="uk.org.ogsadai.dataresource.DQPMySQLMetaDataExtractor"/>
    </relationalMetaData>
  </metaData>

  <!-- Rolemapper to use for mapping from Grid credentials to database roles -->
  <roleMap name="Name" 
           implementation="uk.org.ogsadai.common.rolemap.SimpleFileRoleMapper"
           configuration="F:/jakarta-tomcat-4.1.31/webapps/ogsa/WEB-INF/etc/ExampleDatabaseRoles.xml"/>

  <!-- Data resource details. These settings allow GDS to connect to the DBMS -->
  <dataResource
    	implementation="uk.org.ogsadai.dataresource.SimpleJDBCDataResourceImplementation">
    <driver
        implementation="org.gjt.mm.mysql.Driver">
      <uri>jdbc:mysql://localhost:3306/ogsadai</uri>
    </driver>
  </dataResource>

</dataResourceConfig>










