Openbravo Issue Tracking System - Modules
View Issue Details
0040072ModulesAdvanced Warehouse Operationspublic2019-01-30 14:052019-01-30 14:06
caristu 
Triage Omni WMS 
highminorhave not tried
newopen 
5
 
 
0040072: TaskEventObserver should be defined as @ApplicationScoped
After the fix for issue 0040046 all the classes extending EntityPersistenceEventObserver will be ApplicationScoped by default.

This is not the case of the TaskEventObserver which currently is explictly declared as Dependent. This is because it can not be safely defined as ApplicationScoped because the class has state given by the "toleranceManager" field.

Being @Dependent, a new TaskEventObserver instance is generated on every new write operation performed by DAL (save, update, remove).
N/A
Review how the "toleranceManager" affectes to the thread safeness of the TaskEventObserver in case it is declared as @ApplicationScoped and apply the required changes.
Performance
related to defect 0040046 closed caristu Openbravo ERP unnecessary objects are created every time any DAL object is created/updated/deleted 
Issue History
2019-01-30 14:05caristuNew Issue
2019-01-30 14:05caristuAssigned To => Triage Finance
2019-01-30 14:05caristuRelationship addedrelated to 0040046
2019-01-30 14:06caristuTag Attached: Performance
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

There are no notes attached to this issue.