Zeige QuelltextÄltere VersionenLinks hierherNach oben Letzte ÄnderungenPer E-Mail sendenDruckenPermalink × Dies ist eine alte Version des Dokuments! Beispiel für Konfigurationsdatei global.xml Leider gibt es von den Shibboleth-Entwicklern keinen konkreten Vorschlag wie die Verbindung zur Datenbank genau eingestellt werden soll. Die folgende Beispieldatei enthält eine Konfiguration die wir aus der DFN-AAI-Community übernommen haben (https://listserv.aai.dfn.de/pipermail/aai-users/2017-February/000383.html) und bei uns bisher ohne Probleme funktioniert. Sollten Sie Probleme beim Datenbank-Connect feststellen empfehlen wir über die AAI-Users-Liste Ihr Problem zu schildern. (Klick auf den Dateinamen im Reiter startet den Download) - zurück zur Übersichtsseite ./conf/global.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xmlns:p="http://www.springframework.org/schema/p" xmlns:c="http://www.springframework.org/schema/c" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd" default-init-method="initialize" default-destroy-method="destroy"> <!-- Use this file to define any custom beans needed globally. --> <!-- Die folgenden Werte sind Default-Werte: p:maxActive="100" p:maxIdle="100" Es ist unter Umständen nötig, dass Sie diese Werte für Ihre Installation anpassen.--> <bean id="shibboleth.MySQLDataSource" class="%{mysql.class}" p:driverClassName="com.mysql.jdbc.Driver" p:url="%{mysql.url}" p:username="%{mysql.username}" p:password="%{mysql.password}" p:maxWait="15000" p:testOnBorrow="true" p:maxActive="100" p:maxIdle="100" p:validationQuery="select 1" p:validationQueryTimeout="5" /> <bean id="shibboleth.JPAStorageService" class="org.opensaml.storage.impl.JPAStorageService" p:cleanupInterval="%{idp.storage.cleanupInterval:PT10M}" c:factory-ref="shibboleth.JPAStorageService.EntityManagerFactory" /> <bean id="shibboleth.JPAStorageService.EntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="packagesToScan" value="org.opensaml.storage.impl"/> <property name="dataSource" ref="shibboleth.MySQLDataSource"/> <property name="jpaVendorAdapter" ref="shibboleth.JPAStorageService.JPAVendorAdapter"/> <property name="jpaDialect"> <bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" /> </property> </bean> <bean id="shibboleth.JPAStorageService.JPAVendorAdapter" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" p:generateDdl="true" p:database="MYSQL" p:databasePlatform="org.hibernate.dialect.MySQL5Dialect" /> </beans> Zuletzt geändert: vor 3 Jahren Anmelden