users@glassfish.java.net

Re: Hibernate and Spring not working on Glassfish 2

From: <glassfish_at_javadesktop.org>
Date: Fri, 01 Feb 2008 07:03:14 PST

We're using hibernate with Glassfish. You could either put required hibernate in your gf lib directory or, as we do, together with your application in an ear file. Then just add the following line within the persistence-unit element in your persistence xml file: <provider>org.hibernate.ejb.HibernatePersistence</provider> Remember to specifiy jta-data-source and add the datasource in gf.
[Message sent by forum member 'woel' (woel)]

http://forums.java.net/jive/thread.jspa?messageID=257003