Re: [akka-user] akka-http is there an example of showing how to integrate with servlet container?

2018-01-02 Thread Brian Maso
Hi Feyyaz, I'm thinking what you'd have to do to stay within your organization's required JEE environment is to create a servlet that could feed messages to a Source.actorRef or Source.queue. based on whether you could use the servlet async API, or need to use the venerable synchronous servlet

Re: [akka-user] akka-http is there an example of showing how to integrate with servlet container?

2017-12-27 Thread Feyyaz
Hi, I'm struggling the same issue as well. It's not a choice, but it's a requirement from the infrastructure team. Unfortunately there is no way to directly bind it to a servlet. The easiest way is, as @√ says, to start/stop it with servlet, but it will run on a different port. For example,

Re: [akka-user] akka-http is there an example of showing how to integrate with servlet container?

2017-06-26 Thread Ilya Cassina
Hi √ and everyone, It's 2017 and I'm still struggling with this (migrating from spray)… Could somebody share the easy integration using ServletContextListener described above? In particular I'm quite interested in - how to use a generic servlet implementation backed up by a "routes: Route"

[akka-user] akka-http is there an example of showing how to integrate with servlet container?

2015-04-14 Thread Jas
is there an example showing how to integrate servlet container with akka-http? i'm currently using spray with serlvet with https://github.com/spray/spray/blob/master/spray-servlet/src/main/scala/spray/servlet/Servlet30ConnectorServlet.scala and was hoping to find an example showing how to

Re: [akka-user] akka-http is there an example of showing how to integrate with servlet container?

2015-04-14 Thread Roland Kuhn
Hi Tomer, the servlet container way of running things completely negates all the benefits that Akka HTTP would give you, so there is no point in supporting this scenario—spray-servlet will not be ported to Akka HTTP. Sorry for the bad news, Roland 14 apr 2015 kl. 15:45 skrev Jas

Re: [akka-user] akka-http is there an example of showing how to integrate with servlet container?

2015-04-14 Thread Jas
thank you! sounds like a good option considering my system is already integrated with tomcat! On Tuesday, April 14, 2015 at 5:55:10 PM UTC+3, √ wrote: One integration you can do easily is to have a ServletContextListener that creates the Akka Http server endpoint when loaded and stops it on

Re: [akka-user] akka-http is there an example of showing how to integrate with servlet container?

2015-04-14 Thread Viktor Klang
One integration you can do easily is to have a ServletContextListener that creates the Akka Http server endpoint when loaded and stops it on unload. On Tue, Apr 14, 2015 at 3:53 PM, Roland Kuhn goo...@rkuhn.info wrote: Hi Tomer, the servlet container way of running things completely negates