I googled it and it is multitasking so technically one can run two web apps side by side.
I also found this to start the web app at synology nas boot (don't shoot the messenger - I do not own a synology nas yet but checking around for possible implementations - there might be an easier solution of doing this):
Must I copy the files from www dir of the project to the dir where I copied file.jar in the synology?
Must I execute additional .jar/task in the synology to execute this example?
In your folder "/volume1/web/webapp/HelloWorld" you have to copy both "WebAppHelloWorld.jar" and the "www" folder from your project in B4J.
Then you have to make it running on NAS: go in "Panel Control -> Task Scheduler" -> click on "Create" button -> "Triggered Task -> User-defined script" or "Scheduled Task > User-defined script" (depends on your necessity: try with "Triggered Task" at "Boot-up", user "root"). Remember to select "Enable".
Put the code with your path:
B4X:
cd /volume1/web/webapp/HelloWorld
nohup /var/packages/Java8/target/j2sdk-image/bin/java -jar /volume1/web/webapp/HelloWorld/WebAppHelloWorld.jar > /volume1/web/webapp/HelloWorld/nohup.out
don't forget the first line!
Click on "Run" button or restart the NAS.
I think that you should manage more than one task and server but not on the same port.