clarify deployment using anonymous factories

This commit is contained in:
Roland 2012-06-04 23:10:03 +02:00
parent 14769828d9
commit b98fb0e37a
2 changed files with 16 additions and 0 deletions

View file

@ -92,6 +92,14 @@ As you can see from the example above the following pattern is used to find an `
akka://<actorsystemname>@<hostname>:<port>/<actor path>
.. note::
In order to ensure serializability of ``Props`` when passing constructor
arguments to the actor being created, do not make the factory a non-static
inner class: this will inherently capture a reference to its enclosing
object, which in most cases is not serializable. It is best to make a static
inner class which implements :class:`UntypedActorFactory`.
Programmatic Remote Deployment
------------------------------