Community
Participate
Working Groups
Support an infrastructure for receiving database change events to invalidate the cache. Support Oracle's Database Change event Notification.
See, http://wiki.eclipse.org/EclipseLink/DesignDocs/356812
Created attachment 202835 [details] initial dcn support
Created attachment 203346 [details] patch
SVN trunk commit: Bug#356812 - database change notification Code review: Andrei Changes: - Additional tests for relationships. - Added DatabaseChangeNotificationType enum (NONE, INVALIDATE) - Added databaseChangeNotificationType to @Cache - Added "eclipselink.cache.database-event-listener" persistence unit property. - Added databaseChangeNotificationType to CachePolicy - Changed CachePoliy initialize to inherit CacheIndex, databaseChangeNotificationType, and cacheCoordinationType - Added setCacheCoordinationType to CachePolicy taking the enum - Renamed DatabaseEventNotificationListener to DatabaseEventListener. - Updated OracleChangeNotificationListener to use new config and initialization. - Updated eclipselink-orm schema with databaseChangeNotificationType - Updated JPA metadata with databaseChangeNotificationType and "eclipselink.cache.database-event-listener" - Remove unused MetadataHelper in metadata columns - Fixed logging message for defaulting table when using orm.xml to print class name, not orm file name.
It would be great to have a declarative way to enable the database-change-listener without requiring a customizer.
fixed
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink