<?xml version="1.0" encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xmlns:p="http://www.springframework.org/schema/p"xmlns:lock="http://code.imadcn.com/schema/lock"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context.xsdhttp://code.imadcn.com/schema/lockhttp://code.imadcn.com/schema/lock/lock.xsd"><!-- redis pool--><beanid="jedisPoolConfig"class="redis.clients.jedis.JedisPoolConfig"><propertyname="testOnBorrow"value="false" /><propertyname="testOnReturn"value="true" /></bean><!-- redis sentinel--><beanid="redisSentinelConfig"class="com.imadcn.framework.lock.config.RedisSentinelConfig"><propertyname="masterName"value="mymaster" /><propertyname="sentinelAddrs"value="127.0.0.1:26380,127.0.0.1:26381,127.0.0.1:26382" /></bean><!-- redis connectionFactory--><beanid="connectionFactory"class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"destroy-method="destroy"><constructor-argindex="0"ref="redisSentinelConfig" /><constructor-argindex="1"ref="jedisPoolConfig" /></bean><beanid="stringRedisSerializer"class="org.springframework.data.redis.serializer.StringRedisSerializer" /><beanid="jdkSerializationRedisSerializer"class="org.springframework.data.redis.serializer.JdkSerializationRedisSerializer" /><!-- redisTemplate--><beanid="redisTemplate"class="org.springframework.data.redis.core.RedisTemplate"><propertyname="connectionFactory"ref="connectionFactory" /><propertyname="keySerializer"ref="stringRedisSerializer" /><propertyname="valueSerializer"ref="stringRedisSerializer" /><propertyname="hashKeySerializer"ref="stringRedisSerializer" /><propertyname="hashValueSerializer"ref="stringRedisSerializer" /><propertyname="stringSerializer"ref="stringRedisSerializer" /></bean><!-- redisMessageListenerContainer--><beanid="redisMessageListenerContainer"class="org.springframework.data.redis.listener.RedisMessageListenerContainer"><propertyname="connectionFactory"ref="connectionFactory" /><propertyname="topicSerializer"ref="stringRedisSerializer" /></bean><lock:configid="lockManager"group="physical-exam"redisTemplate="redisTemplate"messageContainer="redisMessageListenerContainer"/></beans>