[akka-user] Akka dispatchers waiting 99% of the time

2014-07-25 Thread 09goral
Hi, I have a simple Akka app that uses spray http client module. I have around 10 actors that make requests to the server every 5 seconds. I use default ExecutionContext that come with context.dispatcher. I turned on JVisualVM to check how my application is doing and I see that most of the

Re: [akka-user] combining Akka Persistence with Akka Scheduling

2014-07-25 Thread Konrad Malawski
Hello Greg, short question - do you aim to provide something as powerful as quartz using this? I mean on monday at 13:02 etc. Because that's not really what our scheduler is designed to do - we only work with in X amount of time. Instead maybe you'd simply like to integrate quartz with akka, as

[akka-user] Re: Distributed pub-sub with Akka

2014-07-25 Thread misael neto
Hi, is there a way to list all topics to which an actor has subscribed to? I read the documentation in https://github.com/akka/akka/blob/master/akka-contrib/docs/distributed-pub-sub.rst and the javadoc but i could not find anything... On Thursday, April 4, 2013 3:27:23 AM UTC-3, Rajiv Kurian

Re: [akka-user] Re: Distributed pub-sub with Akka

2014-07-25 Thread Akka Team
On Fri, Jul 25, 2014 at 6:56 AM, misael neto misawsn...@gmail.com wrote: Hi, is there a way to list all topics to which an actor has subscribed to? I read the documentation in https://github.com/akka/akka/blob/master/akka-contrib/docs/distributed-pub-sub.rst and the javadoc but i could not

Re: [akka-user] Re: Akka Actor Per Request Java Sample

2014-07-25 Thread Akka Team
Hi John, // Here a reference to the backend actor is created ActorRef backend = getContext().actorOf(FromConfig.getInstance().props(), factorialBackendRouter); No, in the above code the actual actor is created and you get back its reference. It is different from looking up the

[akka-user] akka-persistence (2.3.4) and serialization

2014-07-25 Thread Yann Le Moigne
Hi, I would like to have readable entry in journal. To do so, I wrote json serializer for my events and setup up the serializer in application.conf : akka { ... actor { serializers { json = my.app.BusinessEventJsonSerializer } serialization-bindings {

Re: [akka-user] akka-persistence (2.3.4) and serialization

2014-07-25 Thread Akka Team
Hi, As PersistentImpl is private, it seems very delicate to write a serializer for it. As the wrapper above is a sensitive internal class you should definitely not try to serialize it in a custom way. If you need finer grained control of your journal format you have to write a journal

Re: [akka-user] akka 2.3.4 clustering issue

2014-07-25 Thread Rohit Kumar Gupta
Thanks Endre for the clarification. I will file a bug. Thanks, Rohit -- Read the docs: http://akka.io/docs/ Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html Search the archives: https://groups.google.com/group/akka-user --- You received this

[akka-user] Re: akka clustering ipaddress vs hostname issue

2014-07-25 Thread Rohit Kumar Gupta
Hi, Akka 2.3.4 is having huge issue in resolving the hostname/ipaddress when used with clustering. Sometimes it resolves the as hostname and sometimes it resolves as ipaddress. This makes the addresses different and one part of the cluster can't communicate with the other part of the cluster.

Re: [akka-user] Akka dispatchers waiting 99% of the time

2014-07-25 Thread 09goral
That's what I thought. Thanks W dniu piątek, 25 lipca 2014 10:23:43 UTC+2 użytkownik Akka Team napisał: Hi, On Fri, Jul 25, 2014 at 9:49 AM, 09goral gor...@gmail.com javascript: wrote: Hi, I have a simple Akka app that uses spray http client module. I have around 10 actors that make

[akka-user] [2.3.4] Configuring bean without Play.

2014-07-25 Thread Ian Phillips
Can anybody point me at an example of how to configure Ebean when just using Akka (i.e. without Play). I'm trying to structure my app into 2 projects: a front end that uses Play/Akka and a back end that is just Akka based. I can use Ebean as normal from the front end app but when I try to

Re: [akka-user] Re: akka clustering ipaddress vs hostname issue

2014-07-25 Thread Akka Team
Hi Rohit, Have you looked into the configuration setting akka.remote.netty.tcp.hostname ? # The hostname or ip to bind the remoting to, # InetAddress.getLocalHost.getHostAddress is used if empty hostname = If getHostAddress does not return the address/hostname what other

Re: [akka-user] [2.3.4] Configuring bean without Play.

2014-07-25 Thread Akka Team
Hi Ian, On Fri, Jul 25, 2014 at 3:01 PM, Ian Phillips ian.phill...@gmail.com wrote: Can anybody point me at an example of how to configure Ebean when just using Akka (i.e. without Play). I'm trying to structure my app into 2 projects: a front end that uses Play/Akka and a back end that is

Re: [akka-user] combining Akka Persistence with Akka Scheduling

2014-07-25 Thread Akka Team
Hi Greg, On Fri, Jul 25, 2014 at 4:20 PM, Greg Flanagan ventis...@gmail.com wrote: Hey Konrad, I wasn't planning on making it as powerful as quartz but simply making what's available in the scheduler persistent, so that work that is deferred (i.e. scheduled) will not be lost on jvm shutdown.

Re: [akka-user] combining Akka Persistence with Akka Scheduling

2014-07-25 Thread Greg Flanagan
Endre, Seems reasonable to keep the scheduler light weight and performant. My plans were to build something around it. Thanks. Greg On Friday, July 25, 2014 7:40:39 AM UTC-7, Akka Team wrote: Hi Greg, On Fri, Jul 25, 2014 at 4:20 PM, Greg Flanagan vent...@gmail.com javascript: wrote:

[akka-user] Improving Akka Persistence wrt CQRS/ES/DDD

2014-07-25 Thread ahjohannessen
I think that Akka Persistence lacks in some areas that are essential for using CQRS with DDD aggregates effectively (without a lot of pain): 1) Ability to read persistent actor messages by type of Actor. This can be as simple as a key prefix that represents a category/tag/topic, e.g.

Re: [akka-user] [2.3.4] Configuring bean without Play.

2014-07-25 Thread Ian Phillips
Akka has nothing to do with Ebeans, this is definitely not an issue related to Akka. Ah sorry, my bad, looking at the stack trace I thought that the There is no started application error was being thrown by Akka, is that not the case? Cheers, Ian. -- Read the docs:

Re: [akka-user] [2.3.4] Configuring bean without Play.

2014-07-25 Thread Konrad 'ktoso' Malawski
Nope. Please ask the ebean guys about helping out with this one - I had no idea what ebean is until this email :-) Have a great weekend! --  Konrad 'ktoso' Malawski hAkker @ typesafe http://akka.io -- Read the docs: http://akka.io/docs/ Check the FAQ:

Re: [akka-user] [2.3.4] Configuring bean without Play.

2014-07-25 Thread Endre Varga
Can we see the stacktrace? 2014.07.25. 17:55 ezt írta (Ian Phillips ian.phill...@gmail.com): Akka has nothing to do with Ebeans, this is definitely not an issue related to Akka. Ah sorry, my bad, looking at the stack trace I thought that the There is no started application error was being

Re: [akka-user] Improving Akka Persistence wrt CQRS/ES/DDD

2014-07-25 Thread Konrad 'ktoso' Malawski
Hello there, Ah, much better when able to communicate in full sentences without 140 chars limit! ;-) ( https://twitter.com/mrt1nz/status/492676432410447872 )  So, now that it’s spelled out as full sentences, I’ll gladly dig into your points: 1)  Has been already proposed and accepted in 

Re: [akka-user] akka clustering ipaddress vs hostname issue

2014-07-25 Thread Roland Kuhn
Hi Rohit, Akka deliberately does no resolution etc. when interpreting the akka.remote.netty.tcp.hostname you configure: it will use exactly the given string when constructing the ActorSystem’s own address and it will bind to the address the O/S resolves for this string. This means that you

Re: [akka-user] akka camel producer

2014-07-25 Thread Scott Huang
Thanks for the info. That's a bummer because according to the docs the apache camel jms stuff depends on spring, which is part of what I'm trying to get away from in the first place. On Thursday, July 24, 2014 3:54:41 PM UTC-4, √ wrote: Hi Scott, AFAIK all Camel stuff use the same style,

Re: [akka-user] akka camel producer

2014-07-25 Thread √iktor Ҡlang
Hi Scott, fortunately a quick search led me to: On Fri, Jul 25, 2014 at 6:19 PM, Scott Huang scott.hu...@gmail.com wrote: Thanks for the info. That's a bummer because according to the docs the apache camel jms stuff depends on spring, which is part of what I'm trying to get away from in

Re: [akka-user] akka camel producer

2014-07-25 Thread √iktor Ҡlang
Instead of hitting send early, let's add the links too: http://stackoverflow.com/questions/21491129/connect-to-hornetq-with-apache-camel-without-spring Which points to: http://camel.apache.org/sjms which says: Why the S in SJMS Icon S stands for Simple and Standard and Springless. Also

Re: [akka-user] ZMQ crashing when actor restart (and possible solution)

2014-07-25 Thread Jorge Marizan
A 0MQ context is thread safe but individual sockets aren't by default, http://api.zeromq.org/2-1:zmq#toc4 On vie 25 jul 2014 12:47:22 AST, Tommaso Paba wrote: Hi, I'm using Akka with ZMQ integration. I have noticed that, if an actor is restarted by the supervisor because it throws an