Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034536Openbravo ERPA. Platformpublic2016-11-15 16:242016-11-25 07:55
caristu 
caristu 
highminoralways
closedfixed 
5
 
 
alostale
Core
No
0034536: API change required to remove PreferenceEventHandler class
PreferenceEventHandler class was being used to detect changes on the preference values cached by the CachedPreference.

With issue 0034499 CachedPreference is no longer a singleton as we are declaring it as @SessionScoped. This way, the cached values will not persist along the life cycle of the application but the session.

As preferences are refreshed with every new session this handler is no longer required. Besides, the injection of the @SessionScoped bean in the handler was causing this error:

WELD-001303 No active contexts for scope type javax.enterprise.context.SessionScoped
In description
Approved
related to defect 0034499 closed caristu [clustering] CachedPreference feature is not supported on clustered environments 
related to defect 0034514 closed caristu [clustering] CachedPreference should implement Serializable 
Issue History
2016-11-15 16:24caristuNew Issue
2016-11-15 16:24caristuAssigned To => platform
2016-11-15 16:24caristuModules => Core
2016-11-15 16:24caristuTriggers an Emergency Pack => No
2016-11-15 16:24caristuAssigned Toplatform => caristu
2016-11-15 16:24alostaleTag Attached: Approved
2016-11-15 16:25caristuRelationship addedrelated to 0034499
2016-11-15 16:26caristuRelationship addedrelated to 0034514
2016-11-15 16:48caristuDescription Updatedbug_revision_view_page.php?rev_id=13755#r13755
2016-11-15 16:49caristuStatusnew => scheduled
2016-11-15 17:46hgbotCheckin
2016-11-15 17:46hgbotNote Added: 0091580
2016-11-15 17:46hgbotStatusscheduled => resolved
2016-11-15 17:46hgbotResolutionopen => fixed
2016-11-15 17:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/api-checks/rev/968b119cdc1d99b92fd9781f88e19b84f0c3c9a8 [^]
2016-11-15 17:46caristuReview Assigned To => alostale
2016-11-25 07:55alostaleStatusresolved => closed

Notes
(0091580)
hgbot   
2016-11-15 17:46   
Repository: erp/devel/api-checks
Changeset: 968b119cdc1d99b92fd9781f88e19b84f0c3c9a8
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Nov 15 17:46:15 2016 +0100
URL: http://code.openbravo.com/erp/devel/api-checks/rev/968b119cdc1d99b92fd9781f88e19b84f0c3c9a8 [^]

fixes issue 34536: API change required to remove PreferenceEventHandler class

---
M java/reference/java.japi.gz
---