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

META-INF.application-context-service.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:cache="http://www.springframework.org/schema/cache"
	xmlns:task="http://www.springframework.org/schema/task"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:security="http://www.springframework.org/schema/security"
	xsi:schemaLocation="
     http://www.springframework.org/schema/beans
     http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
	 http://www.springframework.org/schema/tool
	 http://www.springframework.org/schema/tool/spring-tool-4.2.xsd
     http://www.springframework.org/schema/task
     http://www.springframework.org/schema/task/spring-task-4.2.xsd
     http://www.springframework.org/schema/cache
     http://www.springframework.org/schema/cache/spring-cache-4.2.xsd
     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
     http://www.springframework.org/schema/security
     http://www.springframework.org/schema/security/spring-security-4.1.xsd">

	<bean id="servicePropertyConfigurer"
		class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="location">
			<value>classpath:cia-service.properties</value>
		</property>
		<property name="ignoreUnresolvablePlaceholders" value="true"/>
	</bean>

	<context:annotation-config />
	<context:spring-configured />
	<context:component-scan base-package="com.hack23.cia.service.impl" />


	<task:annotation-driven executor="myExecutor" scheduler="myScheduler"/>
	<task:executor id="myExecutor" pool-size="5"/>
	<task:scheduler id="myScheduler" pool-size="10"/>

	<security:global-method-security secured-annotations="enabled"/>

	<security:authentication-manager alias="authenticationManager">
		<!-- <security:authentication-provider>
			<security:user-service>
				<security:user name="sysop" password="password"
					authorities="ROLE_USER, ROLE_ADMIN" />
				<security:user name="user" password="password"
					authorities="ROLE_USER" />
			</security:user-service>
		</security:authentication-provider>-->
	</security:authentication-manager>

	<import resource="classpath:META-INF/cia-jms-broker.xml" />


	<cache:annotation-driven cache-manager="serviceCacheManagerSpring" />

	<bean id="serviceCacheManagerSpring" class="org.springframework.cache.ehcache.EhCacheCacheManager">

				<property name="cacheManager" ref="serviceCacheManager" />

	</bean>

	<bean id="serviceCacheManager"
		class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" depends-on="dataCacheManager">
		<property name="configLocation" value="classpath:service-ehcache.xml" />
		<property name="shared" value="false" />
		<property name="CacheManagerName" value="serviceCacheManager" />
	</bean>




	<bean id="serviceEhCacheMBeanRegistration" class="net.sf.ehcache.management.ManagementService"
		init-method="init">
		<constructor-arg index="0" ref="serviceCacheManager" />
		<constructor-arg index="1" ref="mbeanServer" />
		<constructor-arg index="2" value="true" />
		<constructor-arg index="3" value="true" />
		<constructor-arg index="4" value="true" />
		<constructor-arg index="5" value="true" />
		<constructor-arg index="6" value="true" />
	</bean>

	<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
		<property name="host" value="${smtp.host}" />
		<property name="port" value="${smtp.port}" />
		<property name="username" value="${smtp.username}" />
		<property name="password" value="${smtp.password}" />

		<property name="javaMailProperties">
			<props>
				<prop key="mail.smtp.auth">${smtp.auth}</prop>
				<prop key="mail.smtp.starttls.enable">${smtp.starttls.enable}</prop>
			</props>
		</property>
	</bean>


</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy