In my java EE application , I wrote a simple bean that I referenced container managed entity manager like below
@Stateless
public class MessageService {
@PersistenceContext
private EntityManager entityManager;
But even if I have only java EE 8 and H2 database dependencies on my classpath, I was able to reference and use EntityManager from my bean. Should not I have been have to have a JPA implementation on my classpath like Hibernate etc.?