Hello,
I have a simple vertex app, with one verticle with some operations in start() and stop() methods.
The stop() method executes an HTTP request.
When I execute the code inside a main ;
-Build vertx instance
-Deploy the verticle
-Wait for 5 seconds
-Undeploy the verticle
>> The HTTP request is sent.
When I package this application into a single fat jar, I launch the app with this command line :
> java -jar app.jar start -Dvertx-id=app
Then, I stop it :
> java -jar app.jar stop app
The java process is killed, but the HTTP request in the stop method of my single verticle is not executed, because the stop method is not called.
How trigger the stop method of the verticle when I use 'java .. stop app' ?
Thanks
Regards,
Dave