On Wed, Aug 10, 2016 at 1:13 PM, Daniel Stoner <daniel.sto...@ocado.com>
wrote:

> Hi all,
>
> Having read the docs on EventAdapters (http://doc.akka.io/docs/akka/
> 2.4.9-RC2/java/persistence.html#event-adapters-java) and seeing the
> example of how to ignore particular classes I thought this would be a
> perfect solution for me.
>
> Having implemented the example I have tried to the following the
> application.conf example where event-adapter is defined inside the
> 'journal.inmem' config location (EG The location specified by
> journal.plugin value). As such I have:
>
> persistence {
>         journal {
>             plugin = "com.osp.scs.libnado.persistence.dynamodb"
>         }
> ......more things....
> }
>
> com.osp.scs.libnado.persistence.dynamodb {
> event-adapters {
>     class-not-found = "com.osp.scs.libnado.akka.codec.
> ClassNotFoundEventAdapter"
>   }
>   event-adapter-bindings {
>         "com.osp.scs.libnado.akka.codec.JacksonSerializable" =
> class-not-found
>   }
> }
>
> Now it has suddenly occurred to me (since this isn't working) that
> actually event adaptation is something that has to be implemented in each
> Journal implementation that exists and not something that Akka is providing
> before it gets to the journal itself.
>
> Is this the case or am I just putting my config in the wrong place?
> If the former the documentation on how to write your own custom Journal
> may need updating to reflect the intended requirement to support this
> feature.
>

That is true. The TCK should also cover it. Please create an issue, and a
pull request would be great.


>
> Further - are there any shortcuts for implementing the requirements such
> as there is with Serialization and the serialisation-bindings and other
> assorted config working. EG You just utilise SerializationExtension.get(
> system).serialize(entity).
>

Persistence.get(system).adaptersFor


>
> Thanks kindly,
> Daniel Stoner
> --
> Daniel Stoner | Senior Software Engineer UtopiaIT | Ocado Technology
> daniel.sto...@ocado.com | Ext 7969 | www.ocadotechnology.com
>
>
> Notice:  This email is confidential and may contain copyright material of
> members of the Ocado Group. Opinions and views expressed in this message
> may not necessarily reflect the opinions and views of the members of the
> Ocado Group.
>
>
>
> If you are not the intended recipient, please notify us immediately and
> delete all copies of this message. Please note that it is your
> responsibility to scan this message for viruses.
>
>
>
> Fetch and Sizzle are trading names of Speciality Stores Limited and Fabled
> is a trading name of Marie Claire Beauty Limited, both members of the Ocado
> Group.
>
>
>
> References to the “Ocado Group” are to Ocado Group plc (registered in
> England and Wales with number 7098618) and its subsidiary undertakings (as
> that expression is defined in the Companies Act 2006) from time to time.
> The registered office of Ocado Group plc is Titan Court, 3 Bishops Square,
> Hatfield Business Park, Hatfield, Herts. AL10 9NE.
>
> --
> >>>>>>>>>> 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.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      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.

Reply via email to