• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cameron's SCJA Guide: wrong answer?

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, I also noticed that today, I think it is an error. Cameron, have you been made aware of this?
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic