In my test.conf file I have the following configuration
akka {
actor {
provider = "akka.cluster.ClusterActorRefProvider"
serializers {
java = "akka.serialization.JavaSerializer"
}
serialization-bindings {
"java.io.Serializable" = "kyro"
}
}
}
I am trying to put this configuation in test.properties file as
akka.actor.provider=akka.cluster.ClusterActorRefProvider
akka.actor.serializers.java=akka.serialization.JavaSerializer
akka.actor.serialization-bindings."java.io.Serializable" = kryo
When I create and AKKA ActorSystem using test.conf file it is working fine but when I am creating an ActorSytem with the test.propeties file as
System.setProperty("config.file", "test.properties");
Config config = ConfigFactory.load();
ActorSystem testactor = ActorSystem.create("testactor", config);
Here I am getting java ClassNotFoundExcpetion : "java
I seens the way I put the akka.actor.serialization-bindings."java.io.Serializable" in test.properties file is not correct.Please suggest the correct way to put this in .properties file.