References Deprecated
ConcurrentTaskScheduler is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
ConcurrentTaskScheduler, performing a default lookup for
JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Jakarta EE environment.
Expected to be exposed as a bean, in particular as the default lookup happens in the
standard InitializingBean#afterPropertiesSet() callback.Note
This class is not strictly JSR-236 based; it can work with any regular
java. that can be found in JNDI.
The actual adapting to jakarta.
happens in the base class ConcurrentTaskScheduler itself.
jakarta.enterprise.concurrent.ManagedScheduledExecutorService
| Modifier and Type | Field and Description |
|---|---|
| private final JndiLocatorDelegate | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Implements org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| public void | |
| public void | setJndiName(String jndiName)
Specify a JNDI name of the |
| public void | |
| public void | setResourceRef(boolean resourceRef)
Set whether the lookup occurs in a Jakarta EE container, i.e. if the prefix "java:comp/env/" needs to be added if the JNDI name doesn't already contain it. |
| jndiLocator | back to summary |
|---|---|
| private final JndiLocatorDelegate jndiLocator | |
| jndiName | back to summary |
|---|---|
| private String jndiName | |
| DefaultManagedTaskScheduler | back to summary |
|---|---|
| public DefaultManagedTaskScheduler() | |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() throws NamingException Implements org. Doc from org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
| |
| setJndiEnvironment | back to summary |
|---|---|
| public void setJndiEnvironment(Properties jndiEnvironment) Set the JNDI environment to use for JNDI lookups. | |
| setJndiName | back to summary |
|---|---|
| public void setJndiName(String jndiName) Specify a JNDI name of the This can either be a fully qualified JNDI name, or the JNDI name relative to the current environment naming context if "resourceRef" is set to "true".
| |
| setJndiTemplate | back to summary |
|---|---|
| public void setJndiTemplate(JndiTemplate jndiTemplate) Set the JNDI template to use for JNDI lookups. | |
| setResourceRef | back to summary |
|---|---|
| public void setResourceRef(boolean resourceRef) Set whether the lookup occurs in a Jakarta EE container, i.e. if the prefix "java:comp/env/" needs to be added if the JNDI name doesn't already contain it. PersistenceAnnotationBeanPostProcessor's default is "true". | |