aspose file tools*
The moose likes Associate Certification (SCJA,OCAJ 5/6) and the fly likes Cameron's SCJA Guide: wrong answer? 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 » Associate Certification (SCJA,OCAJ 5/6)
Bookmark "Cameron Watch "Cameron New topic
Author

Cameron's SCJA Guide: wrong answer?

Vopli Vidoplyasova
Greenhorn

Joined: Jun 05, 2008
Posts: 26
I'm studying Cameron's SCJA Certification Guide and the answer to one of the questions in "15 Questions: Java Technology" section seems suspicious to me. Here's the question:
Which of the following would be considered to be typical, J2EE application design best practices?

There's four possible answers (it's a multiple choice question), but here's the interesting one:
c) Entity beans should have remote interfaces, while session EJB's should have local interfaces

In the answers this one is said to be correct, and here's the explanation why:
"EJB's can have either remote or local interfaces, and in fact, they can even have both. Entity beans typically have local interfaces, in order to provide a greater level of security over the data they represent. Session EJB's typically have remote interfaces in order to support remote distribution and client access."

Am I missing something or question and answer say about completely opposite things? Again, I understand you can have any interfaces with any EJB's, but the question is talking about "application design best practices", right?
[ December 01, 2008: Message edited by: Slava Golovachenko ]
Stephen Davies
Ranch Hand

Joined: Jul 23, 2008
Posts: 352
Actually, I also noticed that today, I think it is an error. Cameron, have you been made aware of this?


be a well encapsulated person, don't expose your privates, unless you public void getWife()!
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 1973
    
    7

OK I'm no J2EE/EJB expert but have done a bit of EJB, I personally say choice (c) is NOT a design best practice. Yet the explanation truly holds.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cameron's SCJA Guide: wrong answer?
 
Similar Threads
Complex Business Processing in EJB
SCJA Prep
elaborate the reason for Local interface with EJB 2.0 CMR
Test 484 ... LONG POST
long post IBM.158