Hi There,

Playt

I'm experimenting the use of Akka Persistence Query for last couple of 
weeks.
I am able to use some Queries in Standalone Scala-based application with 
Cassandra as data store.

However, if I do the same thing in an Web Application, not able to 
understand it.

Suppose, 
Have a Play Framework form with one field: "username"

In one request, I should submit my "username" value from Play From to Akka 
Persistence to Cassandra. Its okay I will take care of it.

When I try to query the previous event using "Akka Persistence Query" 
something like below:

   queries.eventsByPersistenceId("UName",1,4).map(e => log(e.persistenceId, 
e.event)).to(Sink.ignore).run()

This snippet code is from my standalone application. It is working as 
expected and am able to see those event logs in my console.

However, I need to do the same from my Play Web Application. How to 
retrieve an event from my Cassandra store and convert it into my Case Class 
so that I will populate that object into my Play View.

Please refer me any working example from a github or give me some hits here


Simple words: Query an event from Cassandra data store and convert into my 
Data model (Case class)??

Many thanks,
Ram

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