Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

principal realms

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was doing a mockexam from ejbcertificate.com and the question was:

Which one of the following is a responsibility of the EJB Container with regards to EJB security?


1 The EJB Container is required to provide a security domain and one or more principal realms to the enterprise bean's.
2 The EJB Container is required to provide tools for the Bean provider to allow them to debug enterprise bean's once they have been deployed.
3 The EJB Container is required to link security role references to security roles.
4 The EJB Container is responsible for configuring the principal delegation for inter-component calls.

According to the authors, the correct answer is 1. In HF EJB it is explicitly said that multiple principal realms are not guaranteed, but in number 1 they say :"one or more principal realms"..... :roll:
Who's right???
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Svitlana Dukhovna:
I was doing a mockexam from ejbcertificate.com and the question was:

Which one of the following is a responsibility of the EJB Container with regards to EJB security?


1 The EJB Container is required to provide a security domain and one or more principal realms to the enterprise bean's.
2 The EJB Container is required to provide tools for the Bean provider to allow them to debug enterprise bean's once they have been deployed.
3 The EJB Container is required to link security role references to security roles.
4 The EJB Container is responsible for configuring the principal delegation for inter-component calls.

According to the authors, the correct answer is 1. In HF EJB it is explicitly said that multiple principal realms are not guaranteed, but in number 1 they say :"one or more principal realms"..... :roll:
Who's right???



If I remember well, the HF EJB says also that *one* is guaranteed
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spec 21.6.2: The EJB Container provides a security domain and one or more principal realms to the enterprise beans.


Therefore answer (1) is correct and, at the same time, more than one principal realm is not guaranteed. (it's not a contradiction)

Severin
 
Svitlana Dukhovna
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Severin!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic