Hi Tadej, the default dispatcher is taken from the configuration object akka.actor.default-dispatcher. You can see the default configuration with comments and explanations here (scroll down to line 231).
Regards, Roland 4 jun 2014 kl. 19:02 skrev Tadej Petovar <[email protected]>: > Hi, > > Can somebody please explain to me how can I create ActorSystem and provide it > with execution system which is configured in config file. Currently the only > solution that I have found is: > val default = ActorSystem("default") > > val someExecutionSystem = > ActorSystem( > "name", > config = None, > classLoader = None, > defaultExecutionContext = > Some(default.dispatchers.lookup("execution-context-name"))) > > I hate this solution because it creates one ActorSystem too many. Is there a > better way to do it? > > Regards Tadej > > -- > >>>>>>>>>> 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 message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. Dr. Roland Kuhn Akka Tech Lead Typesafe – Reactive apps on the JVM. twitter: @rolandkuhn -- >>>>>>>>>> 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 message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
