0 Replies Latest reply on Jan 9, 2012 1:38 PM by Kayvan Mojarrad

    Security Context Propagation to JMS Endpoint

    Kayvan Mojarrad Newbie



      Is there a way to propagate security context to a JMS endpoint so that calls made from the recipient message listener to EJBs retain the identity of the sender.




      • Caller invokes a method on session bean 'A' and is authenticated when making the call, establishing a security context
      • Session bean 'A' sends a JMS message
      • A message listener receives the message and calls session bean 'B' with the security context of the sender
      • Session bean 'B' is able to access the sender identity by calling EJBContext.getCallerPrincipal()



      Environment: JBoss AS7.1.0/HornetQ