[
https://issues.apache.org/jira/browse/OFBIZ-8337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15557516#comment-15557516
]
Taher Alkhateeb commented on OFBIZ-8337:
----------------------------------------
This is a note to myself. To complete refactoring the startup sequence I need
to also refactor all the containers themselves, and this would require
substantial changes to the API signatures. Perhaps we can even get rid of the
idea of a container all together for more efficiency. The containers are listed
below to start working on them:
- framework/entity/src/main/java/org/apache/ofbiz/entity/DelegatorContainer.java
-
framework/base/src/main/java/org/apache/ofbiz/base/container/ComponentContainer.java
-
framework/base/src/main/java/org/apache/ofbiz/base/container/JustLoadComponentsContainer.java
-
framework/base/src/main/java/org/apache/ofbiz/base/container/NamingServiceContainer.java
-
framework/service/src/main/java/org/apache/ofbiz/service/rmi/RmiServiceContainer.java
-
framework/service/src/main/java/org/apache/ofbiz/service/mail/JavaMailContainer.java
- framework/service/src/main/java/org/apache/ofbiz/service/ServiceContainer.java
-
framework/entityext/src/main/java/org/apache/ofbiz/entityext/data/EntityDataLoadContainer.java
-
framework/testtools/src/main/java/org/apache/ofbiz/testtools/TestRunContainer.java
-
framework/catalina/src/main/java/org/apache/ofbiz/catalina/container/CatalinaContainer.java
-
specialpurpose/birt/src/main/java/org/apache/ofbiz/birt/container/BirtContainer.java
> Refactor and simplify the startup sequence in OFBiz
> ---------------------------------------------------
>
> Key: OFBIZ-8337
> URL: https://issues.apache.org/jira/browse/OFBIZ-8337
> Project: OFBiz
> Issue Type: Improvement
> Components: base, start
> Affects Versions: Upcoming Branch
> Reporter: Taher Alkhateeb
> Assignee: Taher Alkhateeb
> Priority: Minor
> Attachments: OFBIZ-8337.patch
>
>
> The startup sequence in OFBiz is highly complex and requires improvements on
> multiple levels including:
> - The entire classpath buildup logic and
> org.apache.ofbiz.base.start.Classpath needs to be removed. The original idea
> of classpath isolation between the components created many more problems than
> it solved, and right now the classpath construction is the responsibility of
> the build system.
> - The custom classloader needs to be removed as well together with the
> classpath mentioned above.
> - The StartupLoader interface should remove the start() method and just have
> two methods, load and unload.
> - The startup sequence should have only one StartupLoader, not an array of
> startup loaders. This StartupLoader (implemented as ContainerLoader) is the
> only class responsible for bootstrapping OFBiz
> - The ContainerLoader needs to be completely refactored, not only to remove
> the start() method but also to cleanup the very messy logic currently
> residing there.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)