As the title says, I'd like to know if it's possible to lookup the container managed EntityManger (or EntityManagerFactory or PersistenceContext) through JNDI in an enterprise application deployed on Websphere Application Server ver. 8.5 or 9.0 without explicit references via <persistence-context-ref>
/ <persistence-unit-ref>
in web.xml
.
I found that it's possible in JBoss via the
<property name="jboss.entity.manager.factory.jndi.name" value="persistence-units/JpaPersistence"/>
entry in persistence.xml
, but couldn't find anything similar for Websphere.