It's fine to create more than one in the same jvm. It can be useful for
tests. Be careful to not pass ActorRef instances in a way that would not be
possible if the ActorSystems were in different jvms. Only pass them with
messages. Locate them initially with actorSelection.
/Patrik
ons 21 sep.
On Wed, Sep 21, 2016 at 10:24 AM, Mark Kaberman wrote:
> I am wondering if it is possible to create multiple instances of
> ActorSystem within a single JVM?
>
Possible, yes, but it's rarely a good idea -- ActorSystems are very
heavyweight, and there are almost no
I am wondering if it is possible to create multiple instances of
ActorSystem within a single JVM?
I create my systems as
ActorSystem actorSystem = ActorSystem.create("mySystem", ConfigFactory.load
().getConfig("mySystem"));
and when I call startTime() of each system created it seems to