We are using an embedded jetty instance that we pass a .war file to host a web application. That works very well.
Now, we want to call methods in the hosting java application (that started the jetty server) What is the best way to call methods in the hosting java application from e.g. servlets inside the webapp without having to use TCP-IP connections, etc?
Is there an easy way?
Thanks in advance