|Alert that DCN Took Place [message #1007457]
||Tue, 05 February 2013 22:20
| Julie Schenk
Registered: August 2012
I'm looking for some way to be notified of the Database Change Notification update outright in addition to knowing that when I query [again] I will get updated information from the cache object/db. In my case, I have a GUI to update when a change occurs to the DB.|
I started following along the basic DCN example from (http://docs.oracle.com/cd/E14072_01/java.112/e10589/dbchgnf.htm)
dcr = oc.registerDatabaseChangeNotification(prop);
DatabaseChangeNotificationListener list =
but after using scripts to create my tables I don't get anything back from the following:
String tableNames = dcr.getTables();
In the basic example of course EclipseLink JPA isn't use- just a regular statement to "register" the table.
So is there something to which I can listen to know that there's been a change so that I know to update my GUI pages that have the same Oracle DB backend? My objects are all persistent objects. I updated persentence.xml just like suggested here:
http://wiki.eclipse.org/EclipseLink/Examples/JPA/DCN. And I verified that the example runs with my environment.
Hope that makes some sense.
How do I get a hold of the OracleChangeNotificationListener directly? Or, can I be notified that the cache has been invalidated?
[Updated on: Wed, 06 February 2013 16:21]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02939 seconds