Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Q from ejbcertificate study guide/mock

 
Pooja Gupta
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which one of the following is a responsibility of the EJB Container with regards to EJB security?
Answer & explanation given is:
The EJB Container is required to provide a security domain and one or more principal realms to the enterprise bean's.

Answer 1 is correct, the EJB Container provides a security domain and one or more principal realms to the enterprise bean's. The EJB architecture does not specify how an EJB Server should implement a security domain, and does not define the scope of a security domain. A security domain can be implemented, managed, and administered by the EJB Server. The EJB Server can, but is not required to, provide support for multiple security domains, and/or multiple principal realms.

_________________________________________________________
My doubt is on page 623 HF book, it says that EJB 2.0 container is only required to give "one security domain and one principal realm (multiple realm is not guaranteed)".

What is correct? Also, is there any difference between ejb 2.0 container and ejb 2.0 server because I see both terms used in ejbcertificate exam.

thanks
pooja
 
Keerthi P
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the spec...
The EJB Server can, but is not required to, provide support for multiple security domains, and/or multiple principal realms.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!