title: EJB 3 Sessioncontext in Spring Beans
body: <p>Background: </p>
  
  <p>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. </p>
  
  <p>Question:</p>
  
  <p>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.</p>
  
  <p>Thanks,
  Amit</p>