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  
> 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 manual config and it works fine. Thats not 
>> my point. I want to configure the bindings programatically. 
>>
>
> Right -- and my point is that the romix library is dealing with 
> translating *its* config stuff to Kryo, so *somewhere* in there it must be 
> demonstrating how to set the bindings up programmatically.  I suspect if 
> you figure out how the bindings get used in the romix library, you'll have 
> your answer...
>

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


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
>>  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 the bindings programatically.
>>
>
> Right -- and my point is that the romix library is dealing with
> translating *its* config stuff to Kryo, so *somewhere* in there it must be
> demonstrating how to set the bindings up programmatically.  I suspect if
> you figure out how the bindings get used in the romix library, you'll have
> your answer...
>

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


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 manual config and it works fine. Thats not
> my point. I want to configure the bindings programatically.
>

Right -- and my point is that the romix library is dealing with translating
*its* config stuff to Kryo, so *somewhere* in there it must be
demonstrating how to set the bindings up programmatically.  I suspect if
you figure out how the bindings get used in the romix library, you'll have
your answer...

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


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 ignore those without causing
> problems. ?
>
> On Friday, September 9, 2016 at 3:11:22 PM UTC-5, Konrad Malawski wrote:
>>
>> parseMap +1
>>
>> --
>> Konrad `ktoso` Malawski
>> Akka  @ Lightbend 
>>
>> On 9 September 2016 at 22:10:33, Viktor Klang (viktor...@gmail.com)
>> wrote:
>>
>> 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 ids based on the map. What I am
>>> trying to do is figure out how to create the ConfigValue object
>>> programmatically to accomplish that.
>>>
>>> Thanks.
>>>
>>> On Friday, September 9, 2016 at 2:55:32 PM UTC-5, √ wrote:

 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, 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 manual config and it works fine.
> Thats not my point. I want to configure the bindings programatically.
>
> On Friday, September 9, 2016 at 2:44:42 PM UTC-5, Justin du coeur
> wrote:
>>
>> 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
>> .
>> I learned a huge amount by going through that with the Kryo
>> documentation  and Javadocs
>> 
>>  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  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/c
>>> urrent/additional/faq.html
>>> >> Search the archives: https://groups.google.com/grou
>>> p/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 akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> 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/c
> urrent/additional/faq.html
> >> Search the archives: https://groups.google.com/grou
> p/akka-user
> ---
> You received this message because you are subscribed to the Google
> Groups "Akka User List" 

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:
>
> parseMap +1
>
> -- 
> Konrad `ktoso` Malawski
> Akka  @ Lightbend 
>
> On 9 September 2016 at 22:10:33, Viktor Klang (viktor...@gmail.com 
> ) wrote:
>
> 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 ids based on the map. What I am 
>> trying to do is figure out how to create the ConfigValue object 
>> programmatically to accomplish that.  
>>
>> Thanks.
>>
>> On Friday, September 9, 2016 at 2:55:32 PM UTC-5, √ wrote: 
>>>
>>> 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, 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 manual config and it works fine. 
 Thats not my point. I want to configure the bindings programatically.  

 On Friday, September 9, 2016 at 2:44:42 PM UTC-5, Justin du coeur wrote: 
>
> 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 
> .
>   
> I learned a huge amount by going through that with the Kryo 
> documentation  and Javadocs 
> 
>  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  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 akka-user+...@googlegroups.com.
>> To post to this group, send email to akka...@googlegroups.com.
>> 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 akka-user+...@googlegroups.com.
 To post to this group, send email to 

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 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
> programmatically to accomplish that.
>
> Thanks.
>
> On Friday, September 9, 2016 at 2:55:32 PM UTC-5, √ wrote:
>>
>> 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, 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 manual config and it works fine.
>>> Thats not my point. I want to configure the bindings programatically.
>>>
>>> On Friday, September 9, 2016 at 2:44:42 PM UTC-5, Justin du coeur wrote:

 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
 .
 I learned a huge amount by going through that with the Kryo
 documentation  and Javadocs
 
  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  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/c
> urrent/additional/faq.html
> >> Search the archives: https://groups.google.com/grou
> p/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 akka-user+...@googlegroups.com.
> To post to this group, send email to akka...@googlegroups.com.
> 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/c
>>> urrent/additional/faq.html
>>> >> Search the archives: https://groups.google.com/grou
>>> p/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 akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Cheers,
>> √
>>
> --
> >> 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
> 

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 ids based on the map. What I am
> trying to do is figure out how to create the ConfigValue object
> programmatically to accomplish that.
>
> Thanks.
>
> On Friday, September 9, 2016 at 2:55:32 PM UTC-5, √ wrote:
>>
>> The ActorSystem takes an optional Config when created[1], create that
>> Config object programmatically and do withFallback(ConfigFactory.loa
>> d(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, 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 manual config and it works fine.
>>> Thats not my point. I want to configure the bindings programatically.
>>>
>>> On Friday, September 9, 2016 at 2:44:42 PM UTC-5, Justin du coeur wrote:

 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
 .
 I learned a huge amount by going through that with the Kryo
 documentation  and Javadocs
 
  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  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/c
> urrent/additional/faq.html
> >> Search the archives: https://groups.google.com/grou
> p/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 akka-user+...@googlegroups.com.
> To post to this group, send email to akka...@googlegroups.com.
> 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/c
>>> urrent/additional/faq.html
>>> >> Search the archives: https://groups.google.com/grou
>>> p/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 akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Cheers,
>> √
>>
> --
> >> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this 

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 
programmatically to accomplish that. 

Thanks.

On Friday, September 9, 2016 at 2:55:32 PM UTC-5, √ wrote:
>
> 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, 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 manual config and it works fine. Thats not 
>> my point. I want to configure the bindings programatically. 
>>
>> On Friday, September 9, 2016 at 2:44:42 PM UTC-5, Justin du coeur wrote:
>>>
>>> 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 
>>> .
>>>   
>>> I learned a huge amount by going through that with the Kryo 
>>> documentation  and Javadocs 
>>> 
>>>  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  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 akka-user+...@googlegroups.com.
 To post to this group, send email to akka...@googlegroups.com.
 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 akka-user+...@googlegroups.com .
>> To post to this group, send email to akka...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Cheers,
> √
>

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit 

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, 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 manual config and it works fine. Thats not
> my point. I want to configure the bindings programatically.
>
> On Friday, September 9, 2016 at 2:44:42 PM UTC-5, Justin du coeur wrote:
>>
>> 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
>> .
>> I learned a huge amount by going through that with the Kryo documentation
>>  and Javadocs
>> 
>>  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  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/c
>>> urrent/additional/faq.html
>>> >> Search the archives: https://groups.google.com/grou
>>> p/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 akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
√

-- 
>>  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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


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 the bindings programatically. 

On Friday, September 9, 2016 at 2:44:42 PM UTC-5, Justin du coeur wrote:
>
> 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 
> .
>   
> I learned a huge amount by going through that with the Kryo documentation 
>  and Javadocs 
> 
>  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  
> 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 akka-user+...@googlegroups.com .
>> To post to this group, send email to akka...@googlegroups.com 
>> .
>> 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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


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
.
I learned a huge amount by going through that with the Kryo documentation
 and Javadocs

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  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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> 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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[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 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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.