Hi Laird,
If you want Hibernate to be available to all applications, it is
preferable to copy hibernate jars in domain/lib dir.
<
http://blogs.sun.com/GlassFishPersistence/>Here is an old blog entry
(
http://blogs.sun.com/GlassFishPersistence/entry/use_hibernate_as_a_persistence)
-Mitesh
On 5/2/2011 8:46 AM, Laird Nelson wrote:
> Hello; I am looking for the latest and greatest document regarding the
> proper way to install Hibernate into Glassfish for all applications
> deployed on the application server.
>
> This question
> (http://stackoverflow.com/questions/594079/is-it-possible-to-use-hibernate-as-glassfishs-persistence-provider)
> seems to indicate that (a) this information used to exist, (b) may
> exist again and (c) changes on a regular basis.
>
> The package that is in the Update Center is woefully out of date and
> among other things deploys a version of Hibernate that does not
> respect JPA 2.0 JPQL, so that's not an option.
>
> I've been told not to simply dump Hibernate and its dependencies into
> the domain/lib directory, which I am loathe to do anyway.
>
> I am looking for "official" information, not speculation.
>
> Thanks,
> Laird