[ 
https://issues.apache.org/jira/browse/OPENJPA-2922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17849792#comment-17849792
 ] 

ASF subversion and git services commented on OPENJPA-2922:
----------------------------------------------------------

Commit b3d1ef8671751d47617eaf4ac259b43eae45e53b in openjpa's branch 
refs/heads/master from Mark Struberg
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=b3d1ef867 ]

OPENJPA-2922 disable JNDI lookup of EMF by default

To use this feature please set the following
system.property to true: emf_via_jndi_enabled


> 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
>            Priority: Major
>             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)

Reply via email to