Exposing simple Java application methods through HTTP calls (Not a web application)
<p>I have a simple Java application (Not a web application) and using maven I distribute it through a Jar file. I need to expose some of its public methods through HTTP(Similar to rest APIs) so that other applications can reuse it by making rest calls.
Doing some research I see for example, Jersey is an option but that seems to be only available for Java Web applications. I also came across HTTPComponents + HTTPClient but the code is much more complicated than how Jersey is.</p>

<p>My question is whether there is a simple solution for Java applications to expose public methods through HTTP.</p>

<p>Thank you,
Sara</p>