4 Replies Latest reply on May 28, 2014 4:54 PM by dward

    Invoking a secured EJB from SY

    noelo

      Hi,

      I'm trying to figure out how to invoke a secured EJB from a bean within a Switchyard component.

      I've modified the policy-security-basic-propagate quickstart to lookup an EJB via a local interface.

      This all works well but when I annotate the EJB with

       

      @RolesAllowed({"friend"})

      @SecurityDomain("other")


      I get an exception indicating that the principal isn't passed in the call. These are the same JAAS domain and Role as specified in the quickstart.


      Does SY support propagating the security details to the EJB.


      thanks

      Noel