• 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

deployment descriptor either augment or override method permission

 
Bartender
Posts: 2418
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For everyone's reference,
there are discussion from Enthuware forum about whether the dd augment or override method permission:
http://www.enthuware.com/forum/viewtopic.php?f=4&t=455

The specification has a conflict. It first says dd always overrides the values specified in annotation. Then, it says dd can augment the values specified in annotation.

For example, as I tried with GlassFish 3.1.2, <security-role> defined in dd overrides the @RolesAllowed in the bean. Meanwhile, there is a design that <security-role> in dd is an additional role that is permitted to access a particular method.

This can be an exam watch.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic