Hello everybody,
I have a problem looking up the EntityManager via JNDI. Here a codesnippet:
InitialContext ctx = new InitialContext(); EntityManager em = (EntityManager) ctx.lookup("java:comp/EntityManager/wfms");
<persistence> <persistence-unit name="wfms"> <properties> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> <property name="hibernate.show_sql" value="false"/> </properties> </persistence-unit> </persistence>