3 Replies Latest reply on Aug 13, 2013 9:45 AM by Eduardo Lapaz

    How to propagate user identity on remote ejb call ?

    Rémi Bousquet Newbie

      Hi,  I'm in the configuration where i want to call a deployed ejb on another server instance from another ejb which is called from a webapp.


      I followed this kink of tutorial (https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance) to configure JBoss and it works but it's not exactely what i want because in this tutorial the user used to perform the remote call is fixed (username=ejb) in the configuration.


      I want to make the remote call with the user authenticated on the webapp and not with the predefined user configured on the remote-outbound-connection.


      How should i do that ? In another words, how could i propagate user identity on remote ejb calls ?


      Ps : i didn't find a post answering clearly this question.

      Pss : i'm using the "UsersRoles" login module to log in the webapp. The called method on the distant ejb is secured and can be accessed by roles owned by the webapp user.