In a Stateless Session Bean an EntityManager is injected but I would like to get hold of a Connection object in order to invoke a DB Procedure. Is
EntityManager
Connection
This works awesomely and you can use the connection object elsewhere if needed
SessionImpl sessionImpl = (SessionImpl) session; Connection conn = sessionImpl.connection();
Where session is the name of the Hibernate Session object
session