users@glassfish.java.net

Re: What is EJB3 jar file that is required for hibernate?

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Thu, 16 Nov 2006 08:31:30 -0800

legolas wood wrote:
> Hi
> thank you for reading my post
> I am trying some hibernate learning lessons from Pro hibernate 3 book.
> it said that we need to add EJB3 jar file to our classpath in order to use
> annotations.
> and it said that all application servers that has EJB3 support should
> have that file.
> i searched and i did not find it. :-(
>
So this book is wrong and was probably written before the spec was
officially released:-)
The Java EE 5 spec does not specify jar file names or location.
> for example it needs javax.persistence.*; to be imported into my java
> files which are included into that jar file.
> now the question is that
> what is equal file in glassfish libraries ?
>
lib/javaee.jar
> As i want to use Hibernate engine i do not want to use Glassfish
> implementation of EJB3 (Toplink essential)
>
>
The JPA APIs in javaee.jar do not contain an implementation. You can
safely use Hibernate as an alternate to the default toplink
implementation. I suggest you google GlasFish +Hibernate to see many
articles related to this combination.
Thanks,
Ludo
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>