Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence
Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433684] Tue, 11 April 2006 17:39 Go to next message
Eclipse UserFriend
Originally posted by: jakieskonto1.wp.pl

Can anyboday explain me a difference between Hibernate EJB3 (J2SE) and
Generic EJB 3 Persistence. The most important is how can I use those
products?
Is e.g. Hibernate EJB3 (J2SE) dedicated jus for SE environment, do I need
an application server with enterprise beans container to Generic EJB 3.
Can I use Generic EJB 3 within simple SE application. And last question is
how is Hibernate EJB3 build, is this hibernate with EJB 3.0 API or is this
completly new implementation (so why does it have hibernate in name)...
Than you for all explanation.
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433689 is a reply to message #433684] Tue, 11 April 2006 20:38 Go to previous messageGo to next message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Olo,

EJB3 Persistence (more specifically the Java Persistence API(JPA)) is a
specification which was created to standardize Java object persistence.
Hibernate will be one of several implementations for this standard. I'm
not sure what you mean when you refer to "Generic EJB 3". The concept of
having a specification is that compliant implementations of this spec will
be interchangeable, assuming that you have written your application to the
specification.

The Dali project provides generic tooling for EJB3 implementations, but
the implementations themselves will be persistence providers such as
Hibernate, TL Essentials, etc.

JPA is designed to provide persistence inside or outside a JEE container,
so persistence providers will generally support both of these contexts.

Neil

> Can anyboday explain me a difference between Hibernate EJB3 (J2SE) and
> Generic EJB 3 Persistence. The most important is how can I use those
> products?
> Is e.g. Hibernate EJB3 (J2SE) dedicated jus for SE environment, do I need
> an application server with enterprise beans container to Generic EJB 3.
> Can I use Generic EJB 3 within simple SE application. And last question is
> how is Hibernate EJB3 build, is this hibernate with EJB 3.0 API or is this
> completly new implementation (so why does it have hibernate in name)...
> Than you for all explanation.
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433690 is a reply to message #433689] Tue, 11 April 2006 21:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jakieskonto1.wp.pl

When I refer to "Hibernate EJB3 (J2SE)" and "Generic EJB 3 Persistence" I
mean some options that I can choose using JSR220-ORM Project (Dali)
available here http://www.eclipse.org/jsr220orm/. These are
implementations of EJB 3 Persistence but I couldn't find more details
about those two. I'm just wondering if both can be used in simple JSE
application, or maybe I need ejb container for generic ejb 3 persistence
(some tutorial:-)). I used Hibernate EJB3 (J2SE) within SE environment,
but I need to check ejb generic. So thx for any hint with this.
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433692 is a reply to message #433690] Wed, 12 April 2006 13:46 Go to previous messageGo to next message
Karen Butzke is currently offline Karen ButzkeFriend
Messages: 220
Registered: July 2009
Senior Member
Olo wrote:

> When I refer to "Hibernate EJB3 (J2SE)" and "Generic EJB 3 Persistence" I
> mean some options that I can choose using JSR220-ORM Project (Dali)
> available here http://www.eclipse.org/jsr220orm/. These are
> implementations of EJB 3 Persistence but I couldn't find more details
> about those two. I'm just wondering if both can be used in simple JSE
> application, or maybe I need ejb container for generic ejb 3 persistence
> (some tutorial:-)). I used Hibernate EJB3 (J2SE) within SE environment,
> but I need to check ejb generic. So thx for any hint with this.


It appears that you are using the jsr220orm plugins instead of the dali
plugins. The two project were merged a few months ago and now you need to
be using the dali plugins found at http://www.eclipse.org/dali/. You will
have to remove the jsr220orm plugins and follow the instructions to
download the Dali plugins. I hope this clears up some of the confusion.

Karen
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433713 is a reply to message #433692] Thu, 13 April 2006 00:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jakieskonto1.wp.pl

Thx...I switched my plugin to dali plugin and now I go through the create
project tutorial and there is one point that I don'n know how to resolve.
I can't find the ejb30.jar file. Is this within this plugin (where) or
from where I could download ejb30.jar (also other jars if necessary). It
is not mentioned about this there.
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433726 is a reply to message #433713] Sun, 16 April 2006 13:14 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Olo wrote:
> I can't find the ejb30.jar file.

This jar is typically shipped with your persistence provider. For
example, the Hibernate EntityManager provides it as ejb3-persistence.jar
in it's lib directory. In GlassFish it's all in javaee.jar

Cu, Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433769 is a reply to message #433726] Tue, 18 April 2006 15:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jakieskonto1.wp.pl

So dali plugin doesn't contain the ejb30.jar file? Is some jar file
recommended for this plugin (if yes where can I get this)?
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433771 is a reply to message #433769] Tue, 18 April 2006 17:10 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Olo wrote:
> So dali plugin doesn't contain the ejb30.jar file? Is some jar file
> recommended for this plugin (if yes where can I get this)?

I think there is no recommendation. AFAIK Dali will work with every EJB3
persistence provider.

Cu, Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433777 is a reply to message #433771] Wed, 19 April 2006 18:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jakieskonto1.wp.pl

Could You advise me what EJB3 persistence provider I can choose (besides
Hibernate Entity Manager) because I really don't know if and how many
more are availabe?
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433778 is a reply to message #433777] Wed, 19 April 2006 21:42 Go to previous messageGo to next message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
TopLink Essentials is the reference implementation of the Java Persistence
API (JPA). You can download TopLink Essentials from GlassFish at:

https://glassfish.dev.java.net/downloads/persistence/JavaPer sistence.html

You will find that toplink-essentials.jar includes both the Java
Persistence API (javax.persistence.*) as well as the open source reference
implementation.

Doug
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #433779 is a reply to message #433778] Wed, 19 April 2006 21:45 Go to previous message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
Yes, TopLink Essentials supports JPA usage both within a Java EE 5
container as well as outside the container in Java SE or directly from a
web application.

Doug
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #580358 is a reply to message #433684] Tue, 11 April 2006 20:38 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Olo,

EJB3 Persistence (more specifically the Java Persistence API(JPA)) is a
specification which was created to standardize Java object persistence.
Hibernate will be one of several implementations for this standard. I'm
not sure what you mean when you refer to "Generic EJB 3". The concept of
having a specification is that compliant implementations of this spec will
be interchangeable, assuming that you have written your application to the
specification.

The Dali project provides generic tooling for EJB3 implementations, but
the implementations themselves will be persistence providers such as
Hibernate, TL Essentials, etc.

JPA is designed to provide persistence inside or outside a JEE container,
so persistence providers will generally support both of these contexts.

Neil

> Can anyboday explain me a difference between Hibernate EJB3 (J2SE) and
> Generic EJB 3 Persistence. The most important is how can I use those
> products?
> Is e.g. Hibernate EJB3 (J2SE) dedicated jus for SE environment, do I need
> an application server with enterprise beans container to Generic EJB 3.
> Can I use Generic EJB 3 within simple SE application. And last question is
> how is Hibernate EJB3 build, is this hibernate with EJB 3.0 API or is this
> completly new implementation (so why does it have hibernate in name)...
> Than you for all explanation.
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #580386 is a reply to message #433689] Tue, 11 April 2006 21:33 Go to previous message
Eclipse UserFriend
Originally posted by: jakieskonto1.wp.pl

When I refer to "Hibernate EJB3 (J2SE)" and "Generic EJB 3 Persistence" I
mean some options that I can choose using JSR220-ORM Project (Dali)
available here http://www.eclipse.org/jsr220orm/ These are
implementations of EJB 3 Persistence but I couldn't find more details
about those two. I'm just wondering if both can be used in simple JSE
application, or maybe I need ejb container for generic ejb 3 persistence
(some tutorial:-)). I used Hibernate EJB3 (J2SE) within SE environment,
but I need to check ejb generic. So thx for any hint with this.
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #580433 is a reply to message #433690] Wed, 12 April 2006 13:46 Go to previous message
Karen Butzke is currently offline Karen ButzkeFriend
Messages: 220
Registered: July 2009
Senior Member
Olo wrote:

> When I refer to "Hibernate EJB3 (J2SE)" and "Generic EJB 3 Persistence" I
> mean some options that I can choose using JSR220-ORM Project (Dali)
> available here http://www.eclipse.org/jsr220orm/ These are
> implementations of EJB 3 Persistence but I couldn't find more details
> about those two. I'm just wondering if both can be used in simple JSE
> application, or maybe I need ejb container for generic ejb 3 persistence
> (some tutorial:-)). I used Hibernate EJB3 (J2SE) within SE environment,
> but I need to check ejb generic. So thx for any hint with this.


It appears that you are using the jsr220orm plugins instead of the dali
plugins. The two project were merged a few months ago and now you need to
be using the dali plugins found at http://www.eclipse.org/dali/ You will
have to remove the jsr220orm plugins and follow the instructions to
download the Dali plugins. I hope this clears up some of the confusion.

Karen
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #581676 is a reply to message #433692] Thu, 13 April 2006 00:34 Go to previous message
Eclipse UserFriend
Originally posted by: jakieskonto1.wp.pl

Thx...I switched my plugin to dali plugin and now I go through the create
project tutorial and there is one point that I don'n know how to resolve.
I can't find the ejb30.jar file. Is this within this plugin (where) or
from where I could download ejb30.jar (also other jars if necessary). It
is not mentioned about this there.
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #581925 is a reply to message #433713] Sun, 16 April 2006 13:14 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Olo wrote:
> I can't find the ejb30.jar file.

This jar is typically shipped with your persistence provider. For
example, the Hibernate EntityManager provides it as ejb3-persistence.jar
in it's lib directory. In GlassFish it's all in javaee.jar

Cu, Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #582999 is a reply to message #433726] Tue, 18 April 2006 15:46 Go to previous message
Eclipse UserFriend
Originally posted by: jakieskonto1.wp.pl

So dali plugin doesn't contain the ejb30.jar file? Is some jar file
recommended for this plugin (if yes where can I get this)?
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #583021 is a reply to message #433769] Tue, 18 April 2006 17:10 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Olo wrote:
> So dali plugin doesn't contain the ejb30.jar file? Is some jar file
> recommended for this plugin (if yes where can I get this)?

I think there is no recommendation. AFAIK Dali will work with every EJB3
persistence provider.

Cu, Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #583101 is a reply to message #433771] Wed, 19 April 2006 18:33 Go to previous message
Eclipse UserFriend
Originally posted by: jakieskonto1.wp.pl

Could You advise me what EJB3 persistence provider I can choose (besides
Hibernate Entity Manager) because I really don't know if and how many
more are availabe?
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #583112 is a reply to message #433777] Wed, 19 April 2006 21:42 Go to previous message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
TopLink Essentials is the reference implementation of the Java Persistence
API (JPA). You can download TopLink Essentials from GlassFish at:

https://glassfish.dev.java.net/downloads/persistence/JavaPer sistence.html

You will find that toplink-essentials.jar includes both the Java
Persistence API (javax.persistence.*) as well as the open source reference
implementation.

Doug
Re: Hibernate EJB3 (J2SE) vs. Generic EJB 3 Persistence [message #583125 is a reply to message #433778] Wed, 19 April 2006 21:45 Go to previous message
Doug Clarke is currently offline Doug ClarkeFriend
Messages: 155
Registered: July 2009
Senior Member
Yes, TopLink Essentials supports JPA usage both within a Java EE 5
container as well as outside the container in Java SE or directly from a
web application.

Doug
Previous Topic:Unalble to see the list of tables to map to my Entity
Next Topic:Dali EJB3-JPA tooling priorities – feedback requested
Goto Forum:
  


Current Time: Thu Apr 18 04:17:03 GMT 2024

Powered by FUDForum. Page generated in 0.03980 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top