environment « EntityManager « JPA Q&A





1. How to use JPA EclipseLink to connect to the DB in a multi layer environment (REST + EJB + Core)?    stackoverflow.com

I am using Glassfish v3 server. Usually the DB connection with EJB3 + JPA (Eclipselink) is done through injection, with @PersistenceUnit or @Persistencecontext. However, there are 3 layers in my App :

  • Core (contains ...

2. Hibernate on non-managed environment    stackoverflow.com

I got an small problem, I always worked with Hibernate and Spring on Web stuff with a GenericDAO pattern, now I'm using Hibernate for a GUI app which doesn't use anything ...

3. Run time Error with EntityManager in the J2SE environment    forum.hibernate.org

I have used hibernate's EntityManager for implementing entity persistence in the java desktop environment. I am getting below error at runtime :- Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/util/file/ArchiveBrowser$Filter at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:119) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33) at st.itac.ccc.EntityClient.main(EntityClient.java:9) can any one help me out which jar files I need to include in the class path/or which jar file is missing. I have included ...