Background:
I am using programmatic authentication (basic authentication) using java security. I have a Stateless session bean(EJB 3). I can inject the Sessioncontext to get the security Principal, to get the user name. In the same project I am using spring beans for JDBC and Aspect. I want to get the user name in one of the aspect(Audit) which is also a spring bean.
Question:
Is it possible to access the ejb sesssioncontext in the Spring bean. If so how to do that? If no, how can the username be accessed from the Spring bean which is also an aspect.
Thanks, Amit