Content of file CommonsAutoBeans.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--

    *********************************************************************************************************************

    blueMarine II: Semantic Media Centre
    http://tidalwave.it/projects/bluemarine2

    Copyright (C) 2015 - 2021 by Tidalwave s.a.s. (http://tidalwave.it)

    *********************************************************************************************************************

    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.

    *********************************************************************************************************************

    git clone https://bitbucket.org/tidalwave/bluemarine2-src
    git clone https://github.com/tidalwave-it/bluemarine2-src

    *********************************************************************************************************************

-->
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:aop="http://www.springframework.org/schema/aop"
       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/aop
                           http://www.springframework.org/schema/aop/spring-aop.xsd"
       default-autowire="byType">

    <!-- Turns on @Autowired, @PostConstruct, etc. -->
    <context:annotation-config />

    <!-- Enables AOP-based injection of classes that are instantiated outside of the Spring bean factory -->
    <context:spring-configured />

    <aop:aspectj-autoproxy/>

    <bean id="propertyConfigurer"
          class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="ignoreResourceNotFound" value="true"/>
        <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
        <property name="locations">
            <list>
                <value>classpath*:META-INF/default.properties</value>
                <value>classpath*:META-INF/override.properties</value>
                <value>classpath*:META-INF/test.properties</value>
                <value>file:${blueMarine2.workspace}/config/configuration.properties</value>
            </list>
        </property>
    </bean>

    <!-- This is the master pool of tasks for a number of services. It is required to have it named 'taskExector' so
         it is disambiguated from other task executors that might be present in some libraries. -->
    <bean id="taskExecutor"
          class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"
          autowire-candidate="false">
        <!-- FIXME use properties -->
use properties -->
<property name="waitForTasksToCompleteOnShutdown" value="false"/> <property name="threadNamePrefix" value="task-" /> <property name="corePoolSize" value="20" /> <property name="maxPoolSize" value="100" /> <property name="queueCapacity" value="100" /> </bean> <!-- MessageBus stuff --> <bean id="applicationMessageBus" class="it.tidalwave.messagebus.spi.SimpleMessageBus"> <constructor-arg ref="taskExecutor" /> <constructor-arg> <bean class="it.tidalwave.messagebus.spi.RoundRobinAsyncMessageDelivery" > <property name="workers" value="20" /> </bean> </constructor-arg> </bean> </beans>