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 ]
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!
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 ]
SCJP, SCJD, SCWCD, SCBCD
Joined: Aug 21, 2004
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?
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.
Joined: Aug 21, 2004
Unfortunately, the SCEA beta objectives 4.1 and 4.2 wants us to know about Entity Beans.
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.