Alfresco community edition 4.0.d- Java web services Session Handling
We are using alfresco community edition 4.0.d. Using java web services we use to upload documents and download documents. We have photo album functionality which requests photo url from alfresco using asynchronous call.
Every asynchronous call afresco creates new session. For an example if we have 10 photos we made 10 calls to alfresco to get the content url to load. For all 10 calls alfresco creates 10 new sessions which causes java heap space exceptions. Before creating session we just check whether old ticket available or not then we proceed to create new session.
AuthenticationUtils.getTicket() method will always returns null for every request. How can we handle session in alfresco to use existing open sessions. I have attached code snippet how we are doing.
Is there any guidelines to get it done. Awaiting for your response.