<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
<context:annotation-config />
<bean id="myActorSystem" class="akka.actor.ActorSystem"
factory-method="create" destroy-method="shutdown" scope="singleton">
<constructor-arg value="myActorSystem" />
</bean>
</beans>
myActorSystem {
my-dispatcher {
mailbox-type = com.test.mailbox.MongoMailboxType
}
}
@Configuration
public class myActorConfig {
@Autowired
ActorSystem myActorSystem;
@Bean
@Scope(value=ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public ActorRef myActor() {
return importActorSystem.actorOf(Props.create(MyActor.class).withDispatcher("my-dispatcher"));
}
}
}}
Error message:Dispatcher [my-dispatcher] not configured for path akka://myActorSystem/user/$aI always got the error even though I have a configuration for myActorSystem in application.conf. I did many study and test, but could not make it work.
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.