I’m struggling to make use of the session API for retrieving the session values inside normal function within the feed() scope. I tried the below ways but no luck.
Does myAction do the database action immediately when new is called, as part of the constructor? Or does it return an object which gets called at run time when it is time to do the action?
@John : As it is an Action, it will only take place when it is time to do the action.
Meaning this could block the WHOLE scenario, for all users, which is a really, really bad idea…
Blocking operations need to be handled very carefully when working with Akka
Hi John, Pierre,
Thanks for your update. MyAction is actually an extension of Action Builder. Its a custom implementation of actor like similar to http protocol. I can make it work without using feeder & sessions, but using for loop to construct the scenarioBuiler.
I think either I’m missing something or doing wrong when used feeders/sessions to buildup chain builder.
I really don’t understand how to use the session api in this case. Appreciate if you can show some light on this.