Is it a single node setup or a cluster? What is the persistence used TarMK or MongoMK
Chetan Mehrotra On Tue, May 24, 2016 at 3:11 PM, Loicram Kro <[email protected]> wrote: > Hi. > > I'm using oak in version 1.2.11. > I have a problem with visibility of changes in new sessions. > Steps which I do: > 1. Send a request to save some changes (changes are saved by OSGI Service) > 2. Changes are saved and response is sent back > 3. I send new request which tries to read the changes from the previous > request > 4. Changes are not visible > > I read in the docs, that Oak for each new session is taking a repository > snapshot. From what I've understood, changes from the point number one, may > not be visible for sessions which were already created, but they will be > visible for new sessions. > I've tried to refresh the Session, by calling refresh(false) on Session > object, but usually changes are still not visible. > Of course if I will wait 2-3 second between those requests then everything > is fine, but that is not possible in my case. > > I assume that save is not done when immediately, and still something is > happening in the background (maybe there are some default commit hooks, > which need some time to process). > > It's time for questions: > 1. Is it proper behaviour ? That I don't see changes from previous request > in the new request? > 2. If yes, how can I get those changes? I mean, i know that I can do > everything in one request, so I will see my changes, but maybe there is a > way to get those changes for example from repository directly? I couldn't > find any information how to do that. > > I will just add, that all the time I have short term sessions. (requests > goes to sling servlet, which pass the request to OSGI Service). >
