Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applying security annotations to the interface of the bean ?

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Something I am no longer sure about :
can we apply security annotations on the beans interfaces ?

For instance that works :


But does that work on the interface ?



Thanks.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Celinio Fernandes wrote:

But does that work on the interface ?



No. They are meant to be applied on bean implementation classes. See section 17.3.2.1 of EJB3 spec for the complete set of rules.
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jaikiran, you rule, as always
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic