now i know how to replace the @securityDomain annotation by <security-domain> 
tag in a descriptor file.

my error was that i was putting the string java:/jaas/
jboss.xml (WITH THE ERROR)

  | <jboss>    
  |     <security-domain>
  |     java:/jaas/opencrx-core-CRX
  |     </security-domain>  
  | </jboss>
  | 

jboss.xml

  | <jboss>    
  |     <security-domain>
  |          opencrx-core-CRX
  |     </security-domain>  
  | </jboss>
  | 

everythig works fine now.

i have a class without the @securitydomain annotation and just with the 
@Rolesallowed definitions.

  | //imports..
  | @Stateful
  | public class MySession{
  |   @RolesAllowed({"me"})
  |   public String getHelloWorld(){
  |     return "HOLA";
  |   }
  | }
  | 
so now i can change my securty domain in just one file.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930470#3930470

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930470


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to