With @Name and @Role you can define only two components, with the same scope or not:
| @Name("user")
| @Scope(SESSION)
| @Role(name="user2", scope=SESSION)
|
There is no such limitations with @Roles
| @Name("user")
| @Scope(SESSION)
| @Roles({
| @Role(name="user2", scope=SESSION),
| @Role(name="user3", scope=SESSION),
| @Role(name="user4", scope=SESSION),
| @Role(name="user5", scope=SESSION),
| })
|
|
The scopes can be differents.
Then all the "Role" names can be used as the "Name" one.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080229#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...