Hi, All
I am using Glassfishv3 and hibernate3.5.0-Final as persistence provider in my EJB3 application; and i want to use Hibernate's some specific functions through Hibernate Session...I'm trying to get EntityManager instance of Hibernate(HibernateEntityManager implementation) not com.sun.enterprise.container.common.impl.EntityManagerWrapper...Whenever i get an InitialContext by JNDI, it always returns an instance of that wrapper to manage my entities in the PersistenceContext...
In other words, like JBoss Server uses HibernateEntityManager's and HibernateEntityManagerFactory's implementations as default, Can i use them in Glassfishv3? If it is possible, how? Moreover, I can use Hibernate as persistence provider but this is not enough for my application...
Thanks for your replies in advance.
|