I have created three Java remote workers and during development, I have simply run them from eclipse. Now it’s time to move the workers to production, but how should I run them there?
I’m not very familiar with running java programs directly. I tried creating a jar with dependencies and run them with
java -cp my-woker-jar-with-dependencies.jar com.my.bpm.Worker
But I have a feeling that it’s not the best idea, especially because when the server gets rebooted, my application won’t restart.
What different options do I have? What is the simplest?