[jboss-user] [EJB 3.0] - Re: @RunAs doesn't work in JBossAS 4.2.3?
jaikiran
do-not-reply at jboss.com
Sun Apr 12 03:57:32 EDT 2009
In addition to what Andrew said -
>From what i remember, the @RunAs comes into picture only when you have secured the bean with a @SecurityDomain. Something like:
@Stateless
| @TransactionManagement(TransactionManagementType.CONTAINER)
| @Remote(TestSessionBean.class)
| @Local(TestSessionBean.class)
| @RunAs("testRole")
| @SecurityDomain("other")
| public class TestSessionBeanImpl implements TestSessionBean {
|
P.S: Remember to use the @SecurityDomain from the correct package. The package names are different in 4.x and 5.x of AS.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225018#4225018
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225018
More information about the jboss-user
mailing list