Your actor has a fixed persistenceId, "sample-id-1". You are trying read 
events from "persistentActor-4-java" persistence Id, it never will works.

Em quinta-feira, 24 de dezembro de 2015 08:26:30 UTC-3, Jan-Terje Sørensen 
escreveu:
>
> The thing that is not working is to read the events from the journal.
>
> You can the se work in progress code here 
> <https://github.com/jansoren/dropwizard-eventsourcing-archetype/blob/master/myapp-server/src/main/java/no/jansoren/MainTmp.java>
> .
>
> This is how i persist my events:
>
> public class ApplicationIsStartingPersistenceActor extends 
> UntypedPersistentActor {
>
>     @Override
>     public String persistenceId() {
>         return "sample-id-1";
>     }
>
>     @Override
>     public void onReceiveRecover(Object msg) throws Exception {
>         System.out.println("onReceiveRecover: " + msg);
>     }
>
>     @Override
>     public void onReceiveCommand(Object msg) throws Exception {
>         System.out.println(msg);
>         if (msg instanceof ApplicationIsStartingCommand) {
>             ApplicationHasStartedEvent event = new 
> ApplicationHasStartedEvent();
>             persist(event, new Procedure<ApplicationHasStartedEvent>() {
>                 @Override
>                 public void apply(ApplicationHasStartedEvent event1) throws 
> Exception {
>                     if (event.equals(event1)) {
>                         getContext().system().eventStream().publish(event1);
>                     }
>                 }
>             });
>         } else {
>             unhandled(msg);
>         }
>     }
> }
>
>
>
>

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