https://kotlinlang.org logo
#ktor
Title
# ktor
b

bbaldino

04/29/2020, 9:42 PM
Sorry for what's likely a dumb question, but I haven't been able to grok it from searching around: if I have an existing jetty server and want to add a ktor app as a javax servlet, how do I do that? I see lots of docs talking about deploying to jetty, but I'm confused how it actually works. I see reference to filling out reference.conf, but I don't follow how that would work. I also found
JettyApplicationEngine
, but didn't find much on how to use it.
I found
ServletApplicationEngine
, which looks promisng, but I need to create an
Application
, which gets me back to the
application.conf
question, but that requires passing my own
ApplicationEnvironment
, doesn't seem right, but maybe I'm wrong and do need to create a custom
ApplicationEnvironment
there
Anyone have any suggestions here? I just want to be able to pass a Ktor app as a
javax.servlet.Servlet
. I see I can extend
ServletApplicationEngine
, but there's a good amount of config it looks like I'd need to do there and it doesn't feel like the right path.
4 Views