I have built a batch job which is called from enterprise scheduler to access a light-4j microservice to perform some daily tasks. The batch job is a standalone application uses the light-4j client module to invoke the microservice.
A strange thing happens after the job is done. The main class does not exit automatically after the job is done. It looks like there are still some threads running that prevents the main class to exit. When I switch the light-4j Http2Client to Apache HttpClient, the main class exits gracefully. Am I doing something wrong?