Skip to content

Bug LowerCase acces to datanucleus.allowListenerUpdateAfterInit dont work #138

@galinafrank

Description

@galinafrank

Problem
Currently, PersistenceManagerFactory.addInstanceLifecycleListener(...) throws an exception if it's called after the PMF has been initialized or after a PersistenceManager has been created:

"Configuration changes are not allowed on this PMF, since either it was generated using a JDOHelper factory method, or persistence managers have been generated."

Solution:

    boolean allowListeners = getNucleusContext().getConfiguration().getBooleanProperty("datanucleus.allowListenerUpdateAfterInit".toLowerCase(), false);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions