I've got a running Java, Scala web-application running on a server. How do I make a cli interface for accessing/querying the running application? At the mininum I only need to call the running application's method and retrieve a string that it returns, all from the command line. How would I do that?
Note: Apache Thrift seems to relate to my problem, but it feels like an overkill. I'd love to just write a bash script or a small java program, that could 'hook' into the already running application.