Hi,
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.
E.g.:
- 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
Thanks,
kv