This content has been marked as final.
Show 2 replies
-
1. Re: Can I access the EJB only inside the block or stream in which I addressed (created the link) to the EJB?
boa-ig Mar 20, 2019 5:40 AM (in response to boa-ig)maybe it will work
AuthenticationConfiguration common = AuthenticationConfiguration.empty(); AuthenticationConfiguration igAuthUser = common.useName("ig").usePassword("____"); final AuthenticationContext authCtx1 = AuthenticationContext.empty().with(MatchRule.ALL, igAuthUser); AuthenticationContext.getContextManager().setThreadDefault(authCtx1);
-
2. Re: Can I access the EJB only inside the block or stream in which I addressed (created the link) to the EJB?
boa-ig Mar 21, 2019 3:24 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);