Jörn Horstmann created OPENEJB-1992: ---------------------------------------
Summary: Calling SessionContext.getCallerPrincipal returns wrong value on first call from testcase Key: OPENEJB-1992 URL: https://issues.apache.org/jira/browse/OPENEJB-1992 Project: OpenEJB Issue Type: Bug Components: tests Affects Versions: 4.5.1 Reporter: Jörn Horstmann I reduced a problem encountered during testing of our application to the following testcase. There is a stateless bean with a method that returns the caller principal, obtained from the injected SessionContext. A testcase creates an EJBContainer and calls the bean method two times. The first time the method returns the default username "guest", on the second time the configured username of "test" is returned. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira