Don't have an answer off the cuff -- the answer probably depends on the
Kryo plugin that you're using.  My recommendation is to take a dig through the
akka-kryo-serialization source code
<https://github.com/romix/akka-kryo-serialization>, particularly the
KryoSerializer class
<https://github.com/romix/akka-kryo-serialization/blob/master/src/main/scala/com/romix/akka/serialization/kryo/KryoSerializer.scala>.
I learned a huge amount by going through that with the Kryo documentation
<https://github.com/EsotericSoftware/kryo> and Javadocs
<http://javadox.com/com.esotericsoftware.kryo/kryo/2.23.0/com/esotericsoftware/kryo/package-summary.html>
open;
it's not horribly complex, and the process of figuring out how it works
teaches pretty much everything critical about using Kryo with Akka...

On Fri, Sep 9, 2016 at 3:29 PM, kraythe <[email protected]> wrote:

> Greetings,
>
> In reference to the configuration of serialization bindings I would like
> to do this programatically instead of using the config file. I have a type
> with a static map of types and binding ids based on a Kryo plugin to Akka.
> What I would like to do is create bindings based on that type and configure
> the system accordingly. Does anyone have any example code of how this can
> be done assuming I have access to the config object already? I know I can
> use the default config.with("serialization-bindings". value) but I don't
> know the proper way to construct that value and avoid overwriting anything
> default in the config. The documentation I have read is not explanatory on
> this. http://doc.akka.io/docs/akka/snapshot/scala/serialization.html
>
> Thanks a bunch.
>
> --
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to