You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Naresh Bhatia <bh...@comcast.net> on 2011/08/08 15:57:55 UTC
Stale info in session
I am noticing that even if a file in the repository has changed,
session.getObject() returns the old metadata (e.g. lastModifiedBy and
lastModificationDate). I am assuming this is because the information is
cached in the OpenCMIS session. What's the best way to refresh this
information? I am currently clearing the entire session by calling
Session.clear().
Thanks.
Naresh
Re: Stale info in session
Posted by Naresh Bhatia <bh...@comcast.net>.
Thanks so much Florian. CmisObject.refresh( ) is a much better solution!
Naresh
On Mon, Aug 8, 2011 at 10:13 AM, Florian Müller <
florian.mueller@alfresco.com> wrote:
> Hi Naresh,
>
> Have a look at this page [1] and let us if you have further questions.
>
>
> - Florian
>
>
> [1] http://chemistry.apache.org/java/developing/dev-client-cache.html
>
>
> On 08/08/2011 14:57, Naresh Bhatia wrote:
> > I am noticing that even if a file in the repository has changed,
> > session.getObject() returns the old metadata (e.g. lastModifiedBy and
> > lastModificationDate). I am assuming this is because the information is
> > cached in the OpenCMIS session. What's the best way to refresh this
> > information? I am currently clearing the entire session by calling
> > Session.clear().
> >
> > Thanks.
> > Naresh
> >
>
>
Re: Stale info in session
Posted by Florian Müller <fl...@alfresco.com>.
Hi Naresh,
Have a look at this page [1] and let us if you have further questions.
- Florian
[1] http://chemistry.apache.org/java/developing/dev-client-cache.html
On 08/08/2011 14:57, Naresh Bhatia wrote:
> I am noticing that even if a file in the repository has changed,
> session.getObject() returns the old metadata (e.g. lastModifiedBy and
> lastModificationDate). I am assuming this is because the information is
> cached in the OpenCMIS session. What's the best way to refresh this
> information? I am currently clearing the entire session by calling
> Session.clear().
>
> Thanks.
> Naresh
>