I was looking for documentation about how to configure spring LocalContainerEntityManagerFactory where it can use multiple persistence unit from persistence.xml. I want to use jndi datasource. Also if possible I would like to use server managed entity factory instead of localcontainerentitymanagerfactory using
<jee:jndi-lookup id="entityManagerFactory" jndi-name="persistence-units/pu1"/>
Can somebody guide me to the right direction about this configuration? Also I want to inject entitymanager in my dao class using @PersistenceContext