This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applying security annotations to the interface of the bean ?  RSS feed

 
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
Sheriff
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
Boost this thread!