Hey,

When I have an EntityManager injected while having multiple
persistence units, I do it by specifying the unit name, something
like:
@PersistenceContext(unitName="Some-PU")
private EntityManager em;

Is it possible to do this not by injection, but fetching it by name
through an API of some sort?

Quintin Beukes

Reply via email to