Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread kraythe
They specify the config just like any other serializer, with the serialization bindings. They have no examples of how to do it via code. But I think I can run with this, thanks. On Friday, September 9, 2016 at 4:12:50 PM UTC-5, Justin du coeur wrote: > > On Fri, Sep 9, 2016 at 3:49 PM, kraythe

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread Justin du coeur
(Never mind -- I think I'm misinterpreting what you're trying to accomplish...) On Fri, Sep 9, 2016 at 5:12 PM, Justin du coeur wrote: > On Fri, Sep 9, 2016 at 3:49 PM, kraythe wrote: > >> I am using Akka-kryo by Roman Levenshtein >>

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread Justin du coeur
On Fri, Sep 9, 2016 at 3:49 PM, kraythe wrote: > I am using Akka-kryo by Roman Levenshtein > as recommended on the > akka serialization page. I know all about Kryo and have used it many times > before. I can integrate it with

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread Viktor Klang
use withFallback(ConfigFactory.load(cl)) -- Cheers, √ On Sep 9, 2016 22:24, "kraythe" wrote: > Doh, didn't know that was there. Bah. Sorry but thanks. :) > > Do I need to worry about defining any bindings for Akka types such as > com.google.protobuf.Message or can I safely

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread kraythe
Doh, didn't know that was there. Bah. Sorry but thanks. :) Do I need to worry about defining any bindings for Akka types such as com.google.protobuf.Message or can I safely ignore those without causing problems. ? On Friday, September 9, 2016 at 3:11:22 PM UTC-5, Konrad Malawski wrote: > >

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread Konrad Malawski
parseMap +1 -- Konrad `ktoso` Malawski Akka @ Lightbend On 9 September 2016 at 22:10:33, Viktor Klang (viktor.kl...@gmail.com) wrote: ConfigFactory.parseMap? -- Cheers, √ On Sep 9, 2016 22:01, "kraythe" wrote: > Yeah, that much I

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread Viktor Klang
ConfigFactory.parseMap? -- Cheers, √ On Sep 9, 2016 22:01, "kraythe" wrote: > Yeah, that much I know. However, I have a map of Class -> id in code and I > want to create serialization bindings to this serializer for each of the > types in that map's key set and assign type

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread kraythe
Yeah, that much I know. However, I have a map of Class -> id in code and I want to create serialization bindings to this serializer for each of the types in that map's key set and assign type ids based on the map. What I am trying to do is figure out how to create the ConfigValue object

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread Viktor Klang
The ActorSystem takes an optional Config when created[1], create that Config object programmatically and do withFallback(ConfigFactory.load(classloader)) [1]: https://github.com/akka/akka/blob/master/akka-actor/src/main/scala/akka/actor/ActorSystem.scala#L141 On Fri, Sep 9, 2016 at 9:49 PM,

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread kraythe
I am using Akka-kryo by Roman Levenshtein as recommended on the akka serialization page. I know all about Kryo and have used it many times before. I can integrate it with manual config and it works fine. Thats not my point. I want to configure

Re: [akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread Justin du coeur
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 , particularly the KryoSerializer class

[akka-user] Configuration of SerializationBindings Programmatically?

2016-09-09 Thread kraythe
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