i know that for inject a EntityManager i have to write:

@PersistenceContext(unitName = "movie-unit")
    private EntityManager entityManager;

But from examples i have also  found  a  different use:

@PersistenceContex
    private EntityManager entityManager;

when it is possible  use it?




--
View this message in context: 
http://openejb.979440.n4.nabble.com/when-use-the-inject-EntityManager-without-specify-the-unitname-tp4668006.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to