All Downloads are FREE. Search and download functionalities are using the official Maven repository.

th.ipf.tutorials.ipf-tutorials-iheclient.5.0-m3.source-code.ehcache-spring.xml Maven / Gradle / Ivy

Go to download

This project demonstrates how a client-side application can make use of IHE Producer Endpoints

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2010 the original author or authors.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<beans xmlns="http://www.springframework.org/schema/beans"
    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
">

    <bean id="cachingProvider" class="javax.cache.Caching" factory-method="getCachingProvider" />
    <bean id="ehcacheManager" factory-bean="cachingProvider" factory-method="getCacheManager">
            <constructor-arg><value type="java.net.URI">classpath:ehcache.xml</value></constructor-arg>
        <constructor-arg><bean class="org.springframework.util.ClassUtils" factory-method="getDefaultClassLoader"/></constructor-arg>
    </bean>

    <bean id="hl7v3ContinuationStorage"
          class="org.openehealth.ipf.commons.ihe.hl7v3.storage.SpringCacheHl7v3ContinuationStorage">
        <constructor-arg ref="cacheManager"/>
    </bean>

    <bean id="correlator"
          class="org.openehealth.ipf.commons.ihe.ws.correlation.SpringCacheAsynchronyCorrelator">
        <constructor-arg ref="cacheManager"/>
    </bean>

    <bean id="cacheManager" class="org.springframework.cache.caffeine.CaffeineCacheManager"/>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy