Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

[EJB 2.0 Specs] Security Question. Oh-h-h, tough one

 
Bartender
Posts: 3678
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a question regarding using role references for EJBs.
Here is the excerpt from DD DTD:

We see that 'role-link' is optional, but further we can read :
If the Application Assembler defines the 'security-role' elements in the deployment descriptor, he or she is also responsible for linking all the security role references declared in the 'security-role-ref' elements to the security roles defined in the 'security-role' elements
Also, IMO, it makes no sense to define role reference without role link.
Does that "optional" definition means that it's optional for Bean Provider, but it is a must for ready to deploy EAR (and must be filled by Application Assembler before deployment) ?
If 'no', please, explain me, what is the use of deploying EJB with DD
which has references without links to security roles?
Thanks........
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic