Is it possible to specify the port my application will listen to in config file? I know I can use java -Dninja.port=8765 MyNinjaApp.jar
from command line, but is it possible to do it in config file?
No - that's currently not possible (Ninja 5.1.2).
There are ways to implement that however. Let's discuss on our mailing list if you are interested.