Mark Struberg created OPENJPA-2922: -------------------------------------- Summary: disable JNDI lookup in OpenJPAPersistence by default Key: OPENJPA-2922 URL: https://issues.apache.org/jira/browse/OPENJPA-2922 Project: OpenJPA Issue Type: Improvement Components: kernel Affects Versions: 4.0.0 Reporter: Mark Struberg Assignee: Mark Struberg Fix For: 4.0.1
Right now one can pass a JNDI location to the OpenJPAPersistence to create an EntityManagerFactory. This is considered unsafe. We will have to disable this feature unless someone explicitly enables it via a system.property "{color:#067d17}emf_via_jndi_enabled"{color} Unless this property is set to true any invocation of this method will result in an UserException. -- This message was sent by Atlassian Jira (v8.20.10#820010)