Just do the exit method at the end. A quick way which should be done on the fly is to wrap your realm in TomEERealm. Not sure how your setup skips it since it is there OOTB normally. Le 17 nov. 2015 05:24, "ereshgorantla" <[email protected]> a écrit :
> Hi Romain , > Thanks for the reply we are not using JAASRealm we are using custom way. > I found a way to get username in ejbcontext who is logged in . > > I used TomcatSecurityService to get it done. > > TomcatSecurityService ss = (TomcatSecurityService) > SystemInstance.get().getComponent(SecurityService.class); > ss.enterWebApp(realm, principal, login); > > If i do this I can able to get user in EJBContext . Is there any > implications by doing so? > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/Bind-login-user-to-EJBContext-using-security-filter-using-java-comp-EJBContext-tp4676793p4676812.html > Sent from the TomEE Dev mailing list archive at Nabble.com. >
