When using tasks, you could also create your own executor. If you have very specific needs, it could be really handy.
This recipe will show you how to create a proxy executor that can be injected and used in the whole context of your application.
When using tasks, you could also create your own executor. If you have very specific needs, it could be really handy.
This recipe will show you how to create a proxy executor that can be injected and used in the whole context of your application.
Let's first add our Java EE 8 dependency:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>