[akka-user] Run servlet inside Akka-Http

2015-07-02 Thread Filippo De Luca
Hi, I am working on a project that has some legacy code based on the Servlet API. I would like to transition to an akka-http based project. My idea was to define a route like this: val route = newRoute ~ legacyRoute In wich legacy route will wrap the servlets in some way. Is it a doable

Re: [akka-user] Run servlet inside Akka-Http

2015-07-02 Thread Konrad Malawski
I'd suggest two ways of dealing with a legacy app like that, one more external and the later less: - run both apps, and as you migrate old services to the new app, simply redirect (using a load balancer) traffic to a given API to one or the other application. Once the old one does not serve any

Re: [akka-user] Run servlet inside Akka-Http

2015-07-02 Thread Filippo De Luca
Hi Konrad, Thanks for the Help. The current application is based on scalatra and a custom framework that was supposed to be Servlet-not-aware but actually depends on that interface. The good thing is that it does not use any Servlet fancy feature, but it has just an embedded Jetty run on it. My