How can I we deploy a web service in Java by building a JAR or a WAR?
This part of my application is a REST web services with Jersey, Maven and Eclipse (part of a N-tier achitecture: Client-> Made with a game engine named Godot ,WebServices REST and a MySQL database).
I recently converted it to a web dynamic project but i was wondering if my webservice application really needed to be converted to a dynamic web project to be able to deploy it (with Tomcat)?
I use the HttpServer class to create a server. Everything works fine when I work locally, but how can I make it work when I deploy it if I don't convert it to a dynamic web project? This means with a JAR file when I build it. Do I need to combine both WebressourceLaucher i create with HttpServer and the dynamic web project (see below)?
This is how I was taught to do it:
My WebressourceLaucher class:
https://gyazo.com/e70f0c122b3ed76b7b669a36aa7bd0be
Here the structure of the project: https://gyazo.com/8586b375113bad19753fe5526479cc44
Here my pom.xml to have more details about the project