• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Part II Assignment EJB 2.0 or EJB1.1

 
Robert Double
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Just starting to look at Part II, and was wondering what the general consensus was, regarding what version of EJB to use for the class diagrams.
Modelling in EJB2.0 provides a lot of niceitys when it comes to local interfaces and container-managed-relationships, which arent present in EJB1.1 (well not directly), and you can get away without using DAO's. I know I sent an email to Sun before I done part I asking what version of EJB the exam covered, and the response was 1.1.
Do you think it is a reasonable to put on your submission for Part II you are assuming EJB2.0 technology? or has everyone just designed using EJB1.1? My gut feeling is just to use EJB1.1 as that is what Sun designed the exam for, but in real life EJB2.0 would be the preference.
Like to hear your views.
Thanks
Robert
 
SJ Adnams
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The 'collective opinion' is that you should not use CMP. See other threads (few months back now) for the discussion.
------------------
http://www.x-nt.com
 
Robert Double
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon,
I would totally agree with you that you shouldnt use CMP if you are using EJB1.1, but EJB2.0 gets around alot of the performance, and structuring issues that were inherent in EJB1.1.
Sun has now revised there Petstore 1.3 to use EJB 2.0 with CMP, and have thrown out there DAO's. Surely this is the blue-print for future applications with EJB 2.0?
Look forward to hearing peoples comments on this...
Robert
 
Robert Double
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon,
I would totally agree with you that you shouldnt use CMP if you are using EJB1.1, but EJB2.0 gets around alot of the performance, and structuring issues that were inherent in EJB1.1.
Sun has now revised there Petstore 1.3 to use EJB 2.0 with CMP, and have thrown out there DAO's. Surely this is the blue-print for future applications with EJB 2.0?
Look forward to hearing peoples comments on this...
Robert

Originally posted by Simon Lee:
The 'collective opinion' is that you should not use CMP. See other threads (few months back now) for the discussion.

 
carl marais
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I posted a similar question a while ago but got no response. I finally decided to go with EJB 2.0 CMP for all relationships except where there are huge numbers of results returned. EJB 2.0 has been designed with the shortcomings of EJB1.1 in mind and therefore should be a viable solution.
I think DAOs have their place but people who use them all over the show are not utilising J2EE correctly. Speed of development is often more important than speed of the application (Especially when you have an E10000).
I also think that the earlier projects being done were prior to EJB2.0 when EJB1.1 persistance just didnt cut it which is why there is such consensus on DAO usage. Java Pet Store and Blue prints are also 1.1.
I definately think the paper was prepared with EJB1.1 in mind.
Carl
 
herve attia
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check this Yahoo message about someone who wanted to use EJB2.0
http://groups.yahoo.com/group/scea_j2ee/message/4485
Regards,
 
Andrew Tyson
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that it hurts however to describe parts of the architecture which could benefit from EJB 2.0. Indeed this demonstrates a migration path from EJB 1.1 to EJB 2.0 if and when FBN decide to upgrade their app server.
Regards,
Andrew
 
Robert Double
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK,
offical line from Monica at sun regarding using EJB 2.0
"Hello,
Please submit it in 1.1.
Regards,
Monica"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic