Closing sessions in Servlets and Workflows requrired?
Hi,
In our application, we have a lot of servlets and workflows that run on continuously. We were thinking of using sessions as we need to update the JCR.
From the servlet we can get the sessions like slingRequest.getResourceResolver.adapTo(Session.class) and in the workflow we already have a session in the method signature if the class implements WorkflowProcess or something.
Do we need to explicitly close these session or sling engine will close these session for us once we the code goes out of scope for the method.
Any help is appreciated.
Thanks.