Project:
View Revisions: Issue #40046 | [ Back to Issue ] | ||
Summary | 0040046: unnecessary objects are created every time any DAL object is created/updated/deleted | ||
Revision | 2019-01-28 16:11 by caristu | ||
Description | EntityPersistenceEventObserver should be declared as an @ApplicationScoped bean, otherwise when a new event (save, update, delete, transaction begin, transaction completed) is fired a new instance of every EntityPersistenceEventObserver listening to that particular event is created. | ||
Revision | 2019-01-28 14:08 by caristu | ||
Steps To Reproduce | 1) Apply the provided patch, which writes in the log every time a new instance of EntityPersistenceEventObserver is created. 2) Go to the [Sales Order] 3) Create a new record. Check in the log that a new instance of every EntityPersistenceEventObserver listening to the save event is created. 4) Create another record. Check in the log that a new instance of every EntityPersistenceEventObserver listening to the save event is created again. Note that same happens for the rest of events. |
||
Revision | 2019-01-28 14:08 by caristu | ||
Description | EntityPersistenceEventObserver should be declared as application scoped, otherwise when a new event (save, update, delete, transaction begin, transaction completed) is fired a new instance of every EntityPersistenceEventObserver listening to that particular event is created. | ||
Revision | 2019-01-28 14:04 by caristu | ||
Steps To Reproduce | 1) Apply the provided patch 2) Go to the [Sales Order] 3) Create a new record. Check in the log that every EntityPersistenceEventObserver listening to save event is instantiated. 4) Create another record.Check in the log that every EntityPersistenceEventObserver listening to save event is instantiated. Note that same happens for the rest of events. |
||
Revision | 2019-01-28 14:04 by caristu | ||
Description | EntityPersistenceEventObserver should be declared as application scoped, otherwise when a new event (save, update, delete, transaction begin, transaction completed) is fired every EntityPersistenceEventObserver listening to that particular event is being instantiated. |
Copyright © 2000 - 2009 MantisBT Group |