Question

In order to notify external (to AKKA) components in case an error occurred within an Actor, we use an ErrorHandler listener per one of the SO solutions.

Some errors require a complete process / JVM stop. In which case unless we call:

EventHandler.shutdown()

It keeps the process up.

What would be a clean way to shutdown JVM process in this case? And if we do need to use EventHandler.shutdown(), what would be the most logical ( AKKA? ) place to invoke it from?

Was it helpful?

Solution

If you're running the Akka Microkernel it will be done for you. If you're running it using an AkkaLoader in a ServletContainer, it will be done for you. Do you have a defined application lifecycle?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top