Skip to Content
0
Feb 26, 2009 at 03:59 PM

Defining EJB Security Roles using Annotation

31 Views

Hi,

How can I define security roles for EJB 3.0 stateless session bean.

In my server http://localhost:50000/useradmin I have "myUserRole" roles defined which I want to use for access control of the bean.

I am using this annotation (before class)

@RolesAllowed(value={"myUserRole"})

During deployment I get exception -

com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5082] Exception while [downloading files of application -XXXXXXX]

Regards,

Arpit