aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Applying security annotations to the interface of the bean ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Applying security annotations to the interface of the bean ?" Watch "Applying security annotations to the interface of the bean ?" New topic
Author

Applying security annotations to the interface of the bean ?

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

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.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10266
    
168

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.

[My Blog] [JavaRanch Journal]
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

Thanks Jaikiran, you rule, as always
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applying security annotations to the interface of the bean ?