akka-in-action
akka-in-action copied to clipboard
Chapter2 Fault Tolerance running program 1
Any readme file for these programs ? This is what i get from running the first program
[info] Running aia.faulttolerance.dbstrategy1.LogProcessingApp
[ERROR] [08/12/2017 16:36:29.692] [logprocessing-akka.actor.default-dispatcher-4] [akka://logprocessing/user/file-watcher-supervisor] actor name [db-writer-mydatabase1] is not unique!
akka.actor.ActorInitializationException: akka://logprocessing/user/file-watcher-supervisor: exception during creation
Seem's like calling
val dbWriter = context.actorOf(
DbWriter.props(databaseUrl),
DbWriter.name(databaseUrl )
)
``
means we have 2 Actors with same name in fileWatchers var.
Please see the book :-) https://www.manning.com/books/akka-in-action
yesh i have the book. Not sure i follow. is it meant to throw exception
No it is not supposed to throw an exception. I'll have a look. (I was referring to the 'any readme file')
ah ok :)