I tried to disable following what console message said to me to do: I set akka.log-dead-letters-during-shutdown = off and log-dead-letters = off. I even set log-remote-lifecycle-events = off. But seems doesn't work:
My application.conf of server actor:
To make the disconnection test I just press "CRTL+C" on client side.
What I need to do to make this work? Am I missing something!
without your code i'm assuming you do not nicely stop your actor system
a couple of options (where system is your actor system):
1) you could use registerOnTermination on your actor system
system.registerOnTermination(System.exit(0))
2) you could add a shutdownhook which will get called when the JVM exits (fi by pressing ctrl-c)
from memory so it might be slightly incorrect:
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
system.shutdown
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.