Configuration of Terminology Server

Aus Termserver-CTS2
Wechseln zu: Navigation, Suche

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

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

termserver.log4j.cfg.xml (tomcat/conf)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
 
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
 
  <appender name="file_appender" class="org.apache.log4j.RollingFileAppender">
    <param name="file" value="/Temp/logs/term.log" />
    <param name="Append" value="true" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{dd.MM.yyyy HH:mm:ss} %-5p: %m%n"/>
    </layout>
  </appender>
 
  <appender name="console_appender" class="org.apache.log4j.ConsoleAppender">
	<layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{dd.MM.yyyy HH:mm:ss} %-5p: %m%n"/>
    </layout>
  </appender>
 
  <logger name="org.hibernate"> 
    <level value="WARN"/>  
  </logger> 
 
  <logger name="org.hibernate.SQL"> 
    <level value="warn"/> 
  </logger> 
 
  <logger name="org.hibernate.type"> 
    <level value="warn"/> 
  </logger> 
 
  <root>
    <priority value ="DEBUG" />
    <!--<appender-ref ref="file_appender"/>-->
	<appender-ref ref="console_appender"/>
  </root>
</log4j:configuration>

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:

Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Werkzeuge