1 Reply Latest reply on Sep 19, 2006 6:37 PM by starksm64

    how i set one security role in my ejb


      i want to set the role in my logic

      but how?
      i have a login procedure with db access and final, i know which role the user will get...
      so i only want to set his role "customer" in ejb - exist there one command?
      i look for it but nothing worked

      i tried ctx.isCallerInRole("guest");
      but get No valid security context for the caller identity

      in web.xml i added




      Authorized to limited access.
      Authorized to access everything.