eclipselink
eclipselink copied to clipboard
OracleChangeNotificationListener - enable to set Oracle JDBC connection properties via persistence.xml
This is new feature request to make OracleChangeNotificationListener properties more flexible. It can be helpful if some Oracle JDBC connection properties like
Properties properties = new Properties();
properties.setProperty(OracleConnection.DCN_NOTIFY_ROWIDS, "true");
properties.setProperty(OracleConnection.DCN_IGNORE_INSERTOP, "true");
properties.setProperty(OracleConnection.DCN_CLIENT_INIT_CONNECTION, "true");
this.register = connection.registerDatabaseChangeNotification(properties);
should be set via Persistence Properties e.g. via persistence.xml.
See https://github.com/eclipse-ee4j/eclipselink/blob/master/foundation/org.eclipse.persistence.oracle/src/main/java/org/eclipse/persistence/platform/database/oracle/dcn/OracleChangeNotificationListener.java#L102