Access Keys:
Skip to content (Access Key - 0)

GTS


Grid Trust Service Configuration


[ GTS: Administrators Guide | Developers Guide | caGrid: Documentation Guides ]

The GTS is configured through a configuration file which is located at GTS_HOME/etc/gts-conf.xml(shown below). The GTS uses a Mysql Database as its backend data store; you must provide the GTS with the connection details for your Mysql database. The database element in the GTS configuration is used to specify the connection information for your Mysql database. In the majority of cases you will only need to specify the hostname of your database server, the port that the server runs on, and the username and password of a database user. When the GTS is first initialized it will create a database, named with the value of the gts-internal-id element. The GTS will also proceed to setup its database schema in the database it created. In order to do so the GTS needs to be configured with a database user that has the appropriate permissions. If you do not wish to provide the GTS with such a user you may create the database manually and provide the GTS with a user whom has the permission to modify the database schema. In this scenario the GTS will not create the database but will proceed to setup its database schema in the database that was manually created.  Finally the sync-authorities element, specifies how often the GTS should sync with its authorities.

<gts>
    <resource name="GTSConfiguration" class="gov.nih.nci.cagrid.gts.service.Configuration">
      <gts-config>
        <gts-internal-id>GTS</gts-internal-id>
        <sync-authorities hours="0" minutes="2" seconds="0"/>
        <database>
            <name/>
	    <driver>com.mysql.jdbc.Driver</driver>
	    <urlPrefix>jdbc:mysql:</urlPrefix>
	    <host>localhost</host>
	    <port>3306</port>
	    <username>root</username>
	    <password></password>
	    <pool>1</pool>
	</database>
      </gts-config>
    </resource>
</gts>
Last edited by
Sarah Honacki (855 days ago)
Adaptavist Theme Builder Powered by Atlassian Confluence