What I am trying to do is inject through XML almost the same way that is done through A @PersistenceContext annotation. I am in need of this because of the fact I have differen
You can provide the persistence unit name in the xml configuration, using the SharedEntityManagerBean, like below:
SharedEntityManagerBean
of course, you can have the SharedEntityManagerBean as a separate bean
Here, I m injecting entityManager into BaseDAO as you're doing using @PersistenceContext(unitName="...")
entityManager
BaseDAO
@PersistenceContext(unitName="...")