Setting up a saga repository

Hi there,

I am attempting to setup a saga repository and am having some difficulty. The first thing I tried was this(we will wire things up later when we refactor):

SimpleEntityManagerProvider simpleEntityManagerProvider = new SimpleEntityManagerProvider(entityManagerFactory.createEntityManager());
JpaSagaStore jpaSagaStore = new JpaSagaStore(simpleEntityManagerProvider);

.configureSagaStore(im -> new **JpaSagaStore**(**simpleEntityManagerProvider**)))

However, nothing gets into our database. I then did some further reading and came up with something like this:

As it turned out,

We were ending the sagas too early. :slight_smile:

saga.isActive() returns false after doEnd() is called. Totally on us, lol.

thanks again.