wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes No entity beans in EJB 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "No entity beans in EJB 3" Watch "No entity beans in EJB 3" New topic
Author

No entity beans in EJB 3

Deiveehan Nallazhagappan
Ranch Hand

Joined: May 27, 2002
Posts: 33
Hi all,
I would not go for entity beans for my design because:
From EJB 3, there is no concept of Entity beans. I would not want to redesign the application to replace entity beans after 2 years.

Guys - let me know your thoughts on this.


Deiveehan N - SCJP, SCWCD, SCBCD, IBM-484, SCEA
You may be in the right track, but if you sit there, you will get run over !!
Newman Huang
Ranch Hand

Joined: Mar 31, 2003
Posts: 85
hi deiveehan,
i think the Sun guys won't happy on your thoughts, and such a thing is outside the exam. also, your doubt is outside it too.


SCJP,SCJD,SCEA
Devender Thareja
Ranch Hand

Joined: Jul 14, 2005
Posts: 187
I don't think it's true. Entity beans is very mych part of EJB 3.


Devender Thareja
SCEA, SCBCD, SCJP
Sreenivasa Majji
Ranch Hand

Joined: Jul 12, 2001
Posts: 224
There is not much change in Entity Beans between EJB 2.1 and 3.0, however you can still use Entity beans in EJB3.0 Please read EJB3.0 specification or Mastering EJB 3.0 (free book).


Sreenivasa Majji
Deiveehan Nallazhagappan
Ranch Hand

Joined: May 27, 2002
Posts: 33
Srinivasan - There are lot of changes in terms of persistence approach in ejb 2x and ejb 3.
Entity beans has been removed (i mean no CMP or BMP) and Pojo based entities are introduced. Sun has standardized the persistence approach through Java Persistence API.

if you are really thinking of a solution on a maintainability perspective, you would really have a second thought on the choosing CMPs for this assignment.

However as Newman has said, since this exam is not on JEE 5 you are free to choose CMP or BMP for this assignment.
Sreenivasa Majji
Ranch Hand

Joined: Jul 12, 2001
Posts: 224
I don't think Entity Beans disappered from EJB3.0
Please have a look at http://www.javaworld.com/javaworld/jw-08-2004/jw-0809-ejb.html
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
HI,

For what it is worth. I completed part II and part III a couple of weeks back and have not used entity beans as after many years of playing with entity beans and other persistence mechanisms such as JDO and Hibernate, I do not believe that Entity beans are anywhere near as scalable. Put Simply I do not believe that is the Sun engineers did not agree then the EJB 3.0 spec would not have included a JDO type of persistence mechanism.

I am waiting to get my results back, so Sun may take a look and say I failed cos I never used Entity Beans, however I never saw anything in the requirements that said they had to be used and I saw plenty that said the app needs to be scalable. I did see in the requirements that the architecture needs to be a j2ee architecture, but I think too many people forget that simple Servlets and Jsp's are J2EE components, and there is nothing (as I previously said) in the requirements that says there is a need to use all of the J2EE components.

This is however just my thinking and I have not got my final marks back yet, so I could be wrong.

Mat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No entity beans in EJB 3
 
Similar Threads
Question on EJB
EJB and Hibernate
EJB 3.0 and Hibernate
SCEA 5 - Entity Bean Confusion
why Entity Bean is still there?