Just wondering if this setup is possible:
- Java application running and monitoring embedded jetty server
- Restlet application deployed in embedded jetty exposing RESTful API
- Java based webapp (Spring, Play, whatever) deployed in embedded jetty and talking to the RESTful API via Ajax
I know that Restlet can serve a role of HTTP server via jetty connector, but this is not really what I need. What I want is servlet container (embedded jetty) run from java application and exposing two web applications: RESTful API and webapp client.