incorporate Viktor’s review

This commit is contained in:
Roland 2012-02-09 19:26:02 +01:00
parent 2ce47d6bb5
commit b193bcee04
9 changed files with 107 additions and 138 deletions

View file

@ -110,4 +110,15 @@ which is done by extending ``akka.serialization.JSerializer``, like this:
:exclude: ...
Then you only need to fill in the blanks, bind it to a name in your :ref:`configuration` and then
list which classes that should be serialized using it.
list which classes that should be serialized using it.
A Word About Java Serialization
===============================
When using Java serialization without employing the :class:`JavaSerializer` for
the task, you must make sure to supply a valid :class:`ExtendedActorSystem` in
the dynamic variable ``JavaSerializer.currentSystem``. This is used when
reading in the representation of an :class:`ActorRef` for turning the string
representation into a real reference. :class:`DynamicVariable` is a
thread-local variable, so be sure to have it set while deserializing anything
which might contain actor references.