Keep an object in CQ5 session for all users
I need to read and fetch values from an XML file kept in the DAM. The file is 111 MB in size and takes forever to unmarshall and then equally long time to find the value I am looking for.
I am using JaxB to unmarshall the XML file and then iterating through the list. But most of the times I face timeouts and heapspace error while parsing it.
Is there any way to keep the unmarshalled object in the session and fetch it from there whenever a user needs to search some data in it ?
Any suggestions will be appreciated.