[akka-user] Result from persistent actor

2015-06-08 Thread Idar Borlaug
Hi I am trying out persistentActor and was wondering how to respond to my clients if the command is successfull or not. How do you catch a successfully executed command and how do you check to see if it failed? Do you put validation in receiveCommand before persist or in the handler? -- Idar

[akka-user] TLS Negotiation Mid-Stream

2015-06-08 Thread Chad Retz
I am doing something very similar to https://groups.google.com/forum/#!searchin/akka-user/starttls/akka-user/2385IqTOIXM/udvxMhnjs8cJ where I need to initiate negotiation when the client requests it (I am doing it for IMAP). Some questions about the TLS in Akka streams currently: * I see the

[akka-user] shutdown hook within Tomcat

2015-06-08 Thread Maatary Okouya
Hi, I am using Spray client within tomcat. I am wondering if any one has ever faced this situation. I need to shutdown my spray client when tomcat is shutdown. However the classic shutdown hook as in Runtime.getRuntime().addShutdownHook(new Thread() { override def run() {

[akka-user] Re: shutdown hook within Tomcat

2015-06-08 Thread Guido Medina
For Tomcat 7 and up it is very easy with Servlet 3.0 specification, basically you create create a listener and annotate it, then just add your shutdown code in the context destroyed method: Explained with one example here: http://www.codejava.net/java-ee/servlet/weblistener-annotation-examples

[akka-user] Multiple dispatcher vs multiple actor system in one application

2015-06-08 Thread Maatary Okouya
Hi, I am wondering what would be the criteria to choose between having several actor systems in one application over having multiple dispatcher ? What are the consequence of multiple actor system vs multiple dispatcher ? ( or advantage) -- Read the docs: http://akka.io/docs/

Re: [akka-user] Re: Too many scan calls when profiling my akka application

2015-06-08 Thread Leon Ma
Got it , thanks a lot! 在 2015年6月7日星期日 UTC-7上午4:42:52,Akka Team写道: Hi Leon, The scan method of FJP will very likely be your top method unless you have very favorable load patterns for FJP. I wouldn't worry about it, unless you see a performance problem with your application. -Endre On

[akka-user] Re: shutdown hook within Tomcat

2015-06-08 Thread Maatary Okouya
Thank you looking into it. But one question into it: how would you reference your actor system from here, if you actually create it, from within a another class. Indeed I do not inject the actor system in my class but create it inside it. Basically it is a class that provide a client to

[akka-user] Extracting multiple form values with the same name

2015-06-08 Thread Eric Leleu
Hi, I'm currently using akka-http in version 1.0.0-RC3. I have to process a multipart/form-data content type in which some fields appears multiple times. Until now, I use entity(as[Multipart.FormData]) and I process the formData with my own process. Do you have some examples that show how to

[akka-user] Customer secret verification method for basic authentication

2015-06-08 Thread Guillaume Breton
Hi all, I try to use a basic authentication with a bcrypted password extracted from a database. Unfortunately, the basic authenticationBasicAync directive calls the authenticator with a UserCredentials via authenticator(UserCredentials(basic)). The apply method from the UserCredentials hides