Configuration of Terminology Server
Aus Termserver-CTS2
(Unterschied zwischen Versionen)
(→Config files) |
(→termserver.hibernate.cfg.xml (tomcat/conf)) |
||
Zeile 20: | Zeile 20: | ||
<property name="dialect">org.hibernate.dialect.MySQL5Dialect</property> | <property name="dialect">org.hibernate.dialect.MySQL5Dialect</property> | ||
− | |||
<mapping class="de.fhdo.terminologie.db.hibernate.LicencedUserId"/> | <mapping class="de.fhdo.terminologie.db.hibernate.LicencedUserId"/> | ||
<mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemConceptTranslation"/> | <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemConceptTranslation"/> | ||
Zeile 30: | Zeile 29: | ||
<mapping class="de.fhdo.terminologie.db.hibernate.ConceptValueSetMembership"/> | <mapping class="de.fhdo.terminologie.db.hibernate.ConceptValueSetMembership"/> | ||
<mapping class="de.fhdo.terminologie.db.hibernate.CodeSystem"/> | <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystem"/> | ||
− | |||
<mapping class="de.fhdo.terminologie.db.hibernate.SysParam"/> | <mapping class="de.fhdo.terminologie.db.hibernate.SysParam"/> | ||
<mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemEntityVersion"/> | <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemEntityVersion"/> | ||
Zeile 50: | Zeile 48: | ||
</hibernate-configuration> | </hibernate-configuration> | ||
</source> | </source> | ||
+ | |||
==termserver.properties (tomcat/conf)== | ==termserver.properties (tomcat/conf)== | ||
<source lang="properties"> | <source lang="properties"> |
Version vom 14. Juli 2014, 14:03 Uhr
The Terminology Server can be configured with a properties file located in the tomcat/conf path. The tomcat path is located by the system property "catalina.base".
Additional configuration can be done in the database.
Inhaltsverzeichnis |
Config files
There are 2 config files needed to run the Terminology Server.
termserver.hibernate.cfg.xml (tomcat/conf)
This file is located in the tomcat/conf/ path. It defines the database connection to the Terminology Server.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/DATABASE_NAME</property> <property name="hibernate.connection.username">USERNAME</property> <property name="hibernate.connection.password">PASSWORD</property> <property name="hibernate.show_sql">false</property> <property name="show_sql">false</property> <property name="dialect">org.hibernate.dialect.MySQL5Dialect</property> <mapping class="de.fhdo.terminologie.db.hibernate.LicencedUserId"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemConceptTranslation"/> <mapping class="de.fhdo.terminologie.db.hibernate.Domain"/> <mapping class="de.fhdo.terminologie.db.hibernate.LicencedUser"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemConcept"/> <mapping class="de.fhdo.terminologie.db.hibernate.AssociationType"/> <mapping class="de.fhdo.terminologie.db.hibernate.ConceptValueSetMembershipId"/> <mapping class="de.fhdo.terminologie.db.hibernate.ConceptValueSetMembership"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystem"/> <mapping class="de.fhdo.terminologie.db.hibernate.SysParam"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemEntityVersion"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemEntity"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemVersionEntityMembership"/> <mapping class="de.fhdo.terminologie.db.hibernate.DomainValue"/> <mapping class="de.fhdo.terminologie.db.hibernate.TermUser"/> <mapping class="de.fhdo.terminologie.db.hibernate.MetadataParameter"/> <mapping class="de.fhdo.terminologie.db.hibernate.Session"/> <mapping class="de.fhdo.terminologie.db.hibernate.ValueSet"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemVersionEntityMembershipId"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemVersion"/> <mapping class="de.fhdo.terminologie.db.hibernate.ValueSetVersion"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemMetadataValue"/> <mapping class="de.fhdo.terminologie.db.hibernate.LicenceType"/> <mapping class="de.fhdo.terminologie.db.hibernate.CodeSystemEntityVersionAssociation"/> <mapping class="de.fhdo.terminologie.db.hibernate.ValueSetMetadataValue"/> </session-factory> </hibernate-configuration>
termserver.properties (tomcat/conf)
# Configuration file of the Terminology Server, Browser and Administration # LOGIN # The class which realizes your login method login.classname=LoginUsernamePassword # server-informations server.host=127.0.0.1 server.port=8080 server.secure=false
Database configuration
Mail account configuration
You can configure your mail server directly in the Administration Environment. Select the tab "Terminology" on the left side and then the tab "System parameter".
Here you can enter or edit the following values:
- mail_host: hostname of the mailing server
- mail_name: display name of sender
- mail_password: password of your mail account
- mail_port: port of your mail account
- mail_sender: mail address of the sender
- mail_user: user of your mail account