You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.keycloak.executors.DefaultExecutorsProviderFactory has logic : protected void detectManaged() { String jndiName = MANAGED_EXECUTORS_SERVICE_JNDI_PREFIX + "default"; try { new InitialContext().lookup(jndiName); logger.debugf("We are in managed environment. Executor '%s' was available.", jndiName); managed = true; } catch (NamingException nnfe) { logger.debugf("We are not in managed environment. Executor '%s' was not available.", jndiName); managed = false; } }
means to work with managed executor 'java:jboss/ee/concurrency/executor/default' should be present in context.
So, I think you should first register 'java:jboss/ee/concurrency/executor/default' then "java:jboss/ee/concurrency/executor/default/storage-provider-threads" inside your DynamicJndiContextFactoryBuilder.java.
Also, the lookup method should throw 'NameNotFoundException' inside KeycloakInitialContext.java so as to fallback on default executor if the executor for given taskType not found.
org.keycloak.executors.DefaultExecutorsProviderFactory has logic :
protected void detectManaged() { String jndiName = MANAGED_EXECUTORS_SERVICE_JNDI_PREFIX + "default"; try { new InitialContext().lookup(jndiName); logger.debugf("We are in managed environment. Executor '%s' was available.", jndiName); managed = true; } catch (NamingException nnfe) { logger.debugf("We are not in managed environment. Executor '%s' was not available.", jndiName); managed = false; } }
means to work with managed executor 'java:jboss/ee/concurrency/executor/default' should be present in context.
So, I think you should first register 'java:jboss/ee/concurrency/executor/default' then "java:jboss/ee/concurrency/executor/default/storage-provider-threads" inside your DynamicJndiContextFactoryBuilder.java.
Also, the lookup method should throw 'NameNotFoundException' inside KeycloakInitialContext.java so as to fallback on default executor if the executor for given taskType not found.
@see
org.keycloak.executors.DefaultExecutorsProviderFactory:
protected ExecutorService getPoolManaged(String taskType, KeycloakSession session)
The text was updated successfully, but these errors were encountered: