Hi,
I would like to have "readable" entry in journal.
To do so, I wrote json serializer for my events and setup up the serializer
in application.conf :
akka {
...
actor {
serializers {
json = "my.app.BusinessEventJsonSerializer"
}
serialization-bindings {
"my.app.MyBusinessEventTrait" = json
}
}
}
Now the problem is that my payload seems to be wrapped in an instance of
akka.persistence.PersistentImpl as shown in log :
[debug] a.s.Serialization(akka://application) - Using
serializer[akka.persistence.serialization.MessageSerializer] for message
[akka.persistence.PersistentImpl]
So, when I go in my datastore, I got an ugly string, where my payload is
wrapped in a binary format :
"\nU\b�\r\u0012P{\n \"type\" : \"ServerWatchAdded\",\n \"payload\" : {\n
\"address\" : \"1.1.1.1\"\n }\n}\u0010\u0001\u001a\u0006Server
\u00000\u0000@\u0000Z\u001aakka://application/temp/$a"
As PersistentImpl is private, it seems very delicate to write a serializer
for it.
So how can I get a clean output ?
If I can't, what's the point to allow configuration for custom serializer ?
Thanks for help.
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.