This content has been marked as final.
Show 1 reply
-
1. Re: In WildFly, is it possible to log in, once, at the task level, which uses multiple threads using remote access to the EJB?
boa-ig Mar 21, 2019 3:25 AM (in response to boa-ig)AuthenticationConfiguration common = AuthenticationConfiguration.empty(); AuthenticationConfiguration igAuthUser = common.useName(edUserName.getText()).usePassword(String.valueOf(edPassword.getPassword())); final AuthenticationContext authCtx1 = AuthenticationContext.empty().with(MatchRule.ALL, igAuthUser); AuthenticationContext.getContextManager().setThreadDefault(authCtx1); AuthenticationContext.getContextManager().setGlobalDefault(authCtx1);