I have a java program running on a linux server.
I need to send a HTTP request from a client\mobile to invoke some function in the java program & return a response.
The http request needs a URL to access it,
I thought of having a “jsp” page but this will require a glass fish server which will add more overhead on the already overloaded server.
Any other ideas ??
You can use embedded Java servlet container, such as Jetty. It have much less overhead than Glassfish.
Here’s example of simple servlet launched from main method: