File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why Entity Bean is still there?

 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I am not wrong, I read on this (http://docs.jboss.com/books/lightweight/ch01.html) page that Entity Bean is replaced with JPA (Java Persistance API) in Java EE 5, then why it is covered in SCEA beta objective?
[ October 05, 2007: Message edited by: ankur rathi ]
 
chris zielinski
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My thoughts:

Entity beans are still part of the EJB 3 specification. It is just that entity beans have not evolved since EJB 2.1. Also note that Entity beans have not been deprecated. This means that if there is a newer version of the EJB spec, Entity beans will be there too.

Since it is still possible to code both Entity beans and Entities in EJB 3, Entity beans is in the study material.

When someone would choose Entity beans and when someone would choose Entities is a trade-off decision that any likely JEE architect would have to make.. and hence it is in the syllabus!
 
eduardo ferreira
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the EJB spec, the entity beans were not evolved, but were not deprecated either. They will be deprecated on Java ee 6.
 
Darya Akbari
Ranch Hand
Posts: 1855
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun's Java EE 5 Tutorial say in its Overview chapter:

Java EE 5 Tutorial - Enterprise JavaBeans Technology
There are two kinds of enterprise beans: session beans and message-driven beans.
...
In Java EE 5, entity beans have been replaced by Java persistence API entities.


So no more Entity Beans
[ October 07, 2007: Message edited by: Darya Akbari ]
 
Darya Akbari
Ranch Hand
Posts: 1855
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ankur rathi:
Entity Bean is replaced with JPA (Java Persistance API) in Java EE 5, then why it is covered in SCEA beta objective?


Sorry Ankur,

My response to your question is not an answer at all. Actually I wonder myself now :roll: . That question should be really answered by one of the SCEA folks.

Regards,
Darya
 
Darya Akbari
Ranch Hand
Posts: 1855
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, the SCEA beta objectives 4.1 and 4.2 wants us to know about Entity Beans.
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

While I am not an EJB expert, I was on the SCEA team and I can tell you that part of what we are testing for is (as Chris mentioned) an awareness of the trade-offs of using EJB v2.1 Entity beans versus other persistence technologies such as JPA.

I have ask two other EJB experts on the SCEA team. I will post their comments when I get them.

Hi again, I just recieved en email from Mark Cade saying that what I wrote is a sufficient answer. Let me know if you have any more questions.

Regards,
Bryan
[ October 07, 2007: Message edited by: Bryan Basham ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic