Running background tasks is a useful and important skill in an enterprise context.
You could use it to process data in bulk or just to separate it from the UI processes. This recipe will show you how to do this.
Running background tasks is a useful and important skill in an enterprise context.
You could use it to process data in bulk or just to separate it from the UI processes. This recipe will show you how to do this.
Let's add our dependencies:
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>5.2.10.Final</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
...