Good day. I launch the stub from Jenkins, using the command ( java -jar namezagl.jar ) Job successfully java -jar namezagl.jar and stops, although the stub is cyclic and should work until a forced stop, the console output says:

 11:17:51.424 [main] DEBUG utils.Main.main - Application started D:\tools\.jenkins\workspace\4Testing2\Main_TB13>exit 0 Finished: SUCCESS 

11:17:51.424 [main] DEBUG utils.Main.main - Application started is good, it should be. But why then exit 0 and that's it ???

Moreover, if I launch the same jarnik via CMD - everything is fine, no problems.

  • никаких проблем - no problems, but what is? What do you expect after launch instead of exit 0 ? - Nick Volynkin
  • The stub should always work. When a message arrives in the MQ queue, it will process it and respond. And so she stopped at all. If I launch via CMD, it, as it should, is waiting for its messages, does not close. - Alex
  • and you write in CMD exit 0 ? - Pavel Mayorov
  • try running java through nohup java -jar. - Oleg Chirukhin

0