Re: [akka-user] Older version of Akka framework

2017-11-13 Thread Konrad “ktoso” Malawski
Hi Jani, Use your dependency management tool such as sbt, maven or gradle to download dependencies. They’re all hosted on maven central. No actively maintained version of Akka is compatible with JDK6. You can use a not-maintained version of 2.3.x though — though we strongly discourage that since

[akka-user] Older version of Akka framework

2017-11-13 Thread Jani Lillkåll
Hi ! Is there a place to download older version of Akka framework, that would compile with Java JDK 1.6 ? Thanks for any info you can give. yours Jani -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >>

Re: [akka-user] FSMs and Akka Streams

2017-11-13 Thread Konrad “ktoso” Malawski
Hi John, your problem description is a bit abstract so not quite sure what to advice there, however: please do bear in mind that Streams do not replace Actors. They complement them. Streams are nice for linear things, though Actors are nice for dynamic and distributed settings. It depends on your

Re: [akka-user] Allowing SecurityException to propagate during actor system termination

2017-11-13 Thread Christopher Hunt
Thanks Viktor, I’ve gone with your suggestion which I think is nice and explicit: private val eh = Thread.currentThread().getUncaughtExceptionHandler system.whenTerminated .andThen { case _ => try { println("Exiting") System.exit(exitStatus.getOrElse(1)) } catch

[akka-user] Re: Help with exception with Slick JDBC connector for MS SQL Server

2017-11-13 Thread lutzh
It doesn't really match the error message, but your "driver" entry looks a bit off to me - shouldn't that just be the driver class name? I think the ";databaseName=" would be attached to the URL part, not the driver. And the 3 before the ";", I don't know.. On Monday, November 13, 2017 at

Re: [akka-user] Streaming proxy/tunel on top of akka-http

2017-11-13 Thread Jozsef Zsido
You are completrly right. I have did something differenly somewhere when I tested last time with browser. My code also works fine without the test code. Thank you very mutch! On Monday, November 13, 2017 at 9:28:22 PM UTC+2, Jozsef Zsido wrote: > > yes, I try all the time with real browser. The

Re: [akka-user] Streaming proxy/tunel on top of akka-http

2017-11-13 Thread Jozsef Zsido
yes, I try all the time with real browser. The code blows up the memory when I download a 2GB file and try to stream it from one response to another -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >>

[akka-user] Re: Examples for using Akka Http in streaming fashion?

2017-11-13 Thread jim
A little late to the party, but here's an example program that does several kinds of streaming using akka-http: https://github.com/ludflu/akka-http-simple-test/blob/master/src/main/scala/WebServer.scala Including: 1. streaming sourced http response 2. streamed response based on a streamed http

[akka-user] Help with exception with Slick JDBC connector for MS SQL Server

2017-11-13 Thread 'indusbull' via Akka User List
I am trying Slick (JDBC) Connector tutorial to connect to MS SQL Server 2012 in my prototype Java Akka project. But I am having difficulties since last few hours to connect to DB through JDBC. It keeps throwing below exception

[akka-user] Re: Akka-HTTP compilation error using custom requireParam() directive

2017-11-13 Thread johannes . rudolph
Hi Evgeny, you discovered one of the reasons for the magnet pattern. If you use `requireParam("param".as[Int]) { abc => ... }` then the `{ abc => }` block is mistaken as the implicit argument of `requireParam`. So, either you are ok with that and require users to use extra parentheses

Re: [akka-user] Connection state in Artery

2017-11-13 Thread Merlijn Boogerd
I will, thanks for your feedback, much appreciated! :) Op maandag 13 november 2017 17:10:28 UTC+1 schreef Patrik Nordwall: > > > > On Mon, Nov 13, 2017 at 4:43 PM, Merlijn Boogerd > wrote: > >> Hi Patrik, >> >> Thanks for your fast response! >> >> > In general we

Re: [akka-user] Streaming proxy/tunel on top of akka-http

2017-11-13 Thread johannes . rudolph
I tried your code and it doesn't OOM for me. Have you tried it outside of a test suite? It might be that the test infrastructure is collecting all the data when you use something as `reponse.entity`. If that doesn't help, try capturing a heap dump on OOM and see where the memory is spent.

Re: [akka-user] Connection state in Artery

2017-11-13 Thread Patrik Nordwall
On Mon, Nov 13, 2017 at 4:43 PM, Merlijn Boogerd < merlijn.boog...@trivento.nl> wrote: > Hi Patrik, > > Thanks for your fast response! > > > In general we recommend against using Akka Remoting without Akka > Cluster, but you might have good reasons for not using Akka Cluster? > > My reason to not

Re: [akka-user] Connection state in Artery

2017-11-13 Thread Merlijn Boogerd
Hi Patrik, Thanks for your fast response! > In general we recommend against using Akka Remoting without Akka Cluster, but you might have good reasons for not using Akka Cluster? My reason to not use Cluster is because its complete view of the cluster members poses a scalability issue beyond

Re: [akka-user] Performance of Akka-Http 2.5.4

2017-11-13 Thread johannes . rudolph
I missed this post before. I'd like to add another point. Akka Http hasn't been performance tested on a 40 core machine. The high idle CPU percecntage means that either Akka / Akka Http is not configured correctly for this amount of cores or that there are actual contention issues at these

Re: [akka-user] Allowing SecurityException to propagate during actor system termination

2017-11-13 Thread Viktor Klang
Depends on what you want to achieve. You can always do Thread.currentThread.getUncaughtExeptionHandler and pass your exception in manually (if you don't want to throw a Fatal exception or provide your own `reporter` (to the ExecutionContext). On Mon, Nov 13, 2017 at 1:30 PM, Christopher Hunt

Re: [akka-user] Allowing SecurityException to propagate during actor system termination

2017-11-13 Thread Christopher Hunt
Ah yes, uncaught. Thanks for the correction. > On 13 Nov 2017, at 21:12, Viktor Klang wrote: > > When you say "unhandled exception" you mean "uncaught exception"? > >> On Mon, Nov 13, 2017 at 4:48 AM, Christopher Hunt wrote: >> Hi everyone, >> >> I

Re: [akka-user] Allowing SecurityException to propagate during actor system termination

2017-11-13 Thread Viktor Klang
When you say "unhandled exception" you mean "uncaught exception"? On Mon, Nov 13, 2017 at 4:48 AM, Christopher Hunt wrote: > Hi everyone, > > I have a situation where I need to call System.exit upon an actor system > having terminated. In some runtime situations, a