Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
de:global_xml-example [2017/03/13 15:09] Wolfgang Pempede:global_xml-example [2021/10/20 13:11] (aktuell) – ist inzwischen integriert in de:shibidp:config-storage#datenbank-konfiguration Silke Meyer
Zeile 1: Zeile 1:
-====== Beispiel für Konfigurationsdatei global.xml ====== 
-(Klick auf den Dateinamen im Reiter startet den Download) - zurück zur [[de:shibidp3storage#datenbank-konfiguration|Übersichtsseite]] 
-<file xml ./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. --> 
- 
-        <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="2000" 
-              p:testOnBorrow="true" 
-              p:maxActive="10" 
-              p:maxIdle="5" 
-              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> 
-</file> 
  • Zuletzt geändert: vor 7 Jahren