* new factory interface for LocalDispatcher objects * new factory implementation of GenericDispatcher * new ServiceContainer container that initializes the factory (based on a configuration parameter) * moved the getLocalDispatcher method out of GenericDispatcher and refactored (in a thread safe way) into ServiceContainer/GenericDispatcherFactory * ServiceContainer also maintains the cache of LocalDispatchers that was managed by GenericDispatcher * added code to ServiceContainer to deregister LocalDispatchers at shutdown: this finally fix the current code that was broken because the thread pool maintained by the JobPoller was never closed because of an issue with LocalDispatchers not being deregistered when not started by the ContextFilter * change all code to call the ServiceContainer rather than GenericContainer to get a LocalDispatcher: now the implementation is no more directly referenced by calling code git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1364952 13f79535-47bb-0310-9956-ffa450edef68
43 lines
1.9 KiB
XML
43 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you 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.
|
|
-->
|
|
|
|
<component-loader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/component-loader.xsd">
|
|
<load-component component-location="base"/>
|
|
<load-component component-location="geronimo"/>
|
|
<load-component component-location="sql"/>
|
|
<load-component component-location="entity"/>
|
|
<load-component component-location="security"/>
|
|
<load-component component-location="datafile"/>
|
|
<load-component component-location="minilang"/>
|
|
<load-component component-location="common"/>
|
|
<load-component component-location="service"/>
|
|
<!-- <load-component component-location="jetty"/> -->
|
|
<load-component component-location="catalina"/>
|
|
<load-component component-location="entityext"/>
|
|
<load-component component-location="bi"/>
|
|
<load-component component-location="webapp"/>
|
|
<load-component component-location="widget"/>
|
|
<load-component component-location="appserver"/>
|
|
<load-component component-location="testtools"/>
|
|
<load-component component-location="webtools"/>
|
|
<load-component component-location="images"/>
|
|
</component-loader>
|