<?xml version="1.0"?>

<beans
	default-destroy-method="destroy"
	default-init-method="afterPropertiesSet"
	xmlns="http://www.springframework.org/schema/beans"
	xmlns:util="http://www.springframework.org/schema/util"
	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-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"
>

	<!-- Executor factory -->

	<bean id="com.liferay.portal.kernel.executor.PortalExecutorFactory" class="com.liferay.portal.executor.PortalExecutorFactoryImpl">
		<property name="allowCoreThreadTimeout" value="true" />
		<property name="corePoolSize" value="0" />
		<property name="keepAliveTime" value="60" />
		<property name="maxPoolSize" value="10" />
		<property name="maxQueueSize">
			<util:constant static-field="java.lang.Integer.MAX_VALUE" />
		</property>
		<property name="rejectedExecutionHandler">
			<bean class="com.liferay.portal.kernel.concurrent.AbortPolicy" />
		</property>
		<property name="threadPoolHandler">
			<bean class="com.liferay.portal.kernel.concurrent.ClearThreadLocalThreadPoolHandler" />
		</property>
		<property name="timeUnit">
			<util:constant static-field="java.util.concurrent.TimeUnit.SECONDS" />
		</property>
	</bean>

	<!-- Executor manager -->

	<bean id="com.liferay.portal.kernel.executor.PortalExecutorManager" class="com.liferay.portal.executor.PortalExecutorManagerImpl">
		<property name="portalExecutorFactory" ref="com.liferay.portal.kernel.executor.PortalExecutorFactory" />
	</bean>
	<bean id="com.liferay.portal.kernel.executor.PortalExecutorManagerUtil" class="com.liferay.portal.kernel.executor.PortalExecutorManagerUtil">
		<property name="portalExecutorManager" ref="com.liferay.portal.kernel.executor.PortalExecutorManager" />
	</bean>

	<!-- Process executor -->

	<bean id ="com.liferay.portal.kernel.process.ProcessExecutor" class="com.liferay.portal.kernel.process.ProcessExecutor" />
</beans>