You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Carlos Villegas <ca...@uniscope.jp> on 2004/04/27 16:10:46 UTC

Controlling Slide cache, was Re: patch for auto-create-users

Hi,

Daniel Florey wrote:

> If LDAP provides some notification mechanism for informing slide about 
> user/role updates additional user/role caching would be possible to 
> achieve better performance.

I have a custom store that gets user/role info from an external source. 
  I set it up in the Domain.xml and it's working but Slide caches the 
objects and do not go to my store to get updated info. I can also detect 
external updates, but how do I control the caching in Slide? I don't 
want to disable caching completely. Is there a way to invalidate a cache 
entry from within my store code?

Thanks,

Carlos


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Download of files that are larger than 65535 Bytes (63,9K)

Posted by Oleg Rostanin <ro...@dfki.uni-kl.de>.
I use version SLIDE_2_0_RELEASE_BRANCH_RC1_RELEASE

together with sources of the jakarta commons utilities

version HTTPCLIENT_2_0_BRANCH

Oleg



Oliver Zeigermann wrote:

> As said before, please specify which Client version you use.
>
> Oliver
>
> Oleg Rostanin wrote:
>
>> I have checked the Slide servlet with another client (DAVExplorer). 
>> It works correctly.
>> It means the reason must be hiding somwhere in webdav API
>>
>> Oleg Rostanin wrote:
>>
>>> Hello everyone,
>>>
>>> I'm writing a universal module for UP/Downloading files to/from 
>>> WebDAV repositories.
>>> I have encountered the strange problem that only files with the size 
>>> up to 65535 Bytes are uploaded/downloaded correctly.
>>>
>>> If a file is larger that  only the first 65535 Bytes are uploaded or 
>>> downloaded.
>>>
>>> import org.apache.webdav.lib.*;
>>>
>>>    public void downloadDocument(WebdavResource resource, File 
>>> localFile) throws Exception
>>>    {
>>>        if(!resource.isCollection())
>>>        {
>>>            resource.getMethod(localFile);
>>>        }
>>>    }
>>>
>>>
>>> can anybody help me?
>>>
>>>
>>> Best,
>>> Oleg Rostanin
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>> .
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Download of files that are larger than 65535 Bytes (63,9K)

Posted by Oliver Zeigermann <oz...@c1-fse.de>.
As said before, please specify which Client version you use.

Oliver

Oleg Rostanin wrote:

> I have checked the Slide servlet with another client (DAVExplorer). It 
> works correctly.
> It means the reason must be hiding somwhere in webdav API
> 
> Oleg Rostanin wrote:
> 
>> Hello everyone,
>>
>> I'm writing a universal module for UP/Downloading files to/from WebDAV 
>> repositories.
>> I have encountered the strange problem that only files with the size 
>> up to 65535 Bytes are uploaded/downloaded correctly.
>>
>> If a file is larger that  only the first 65535 Bytes are uploaded or 
>> downloaded.
>>
>> import org.apache.webdav.lib.*;
>>
>>    public void downloadDocument(WebdavResource resource, File 
>> localFile) throws Exception
>>    {
>>        if(!resource.isCollection())
>>        {
>>            resource.getMethod(localFile);
>>        }
>>    }
>>
>>
>> can anybody help me?
>>
>>
>> Best,
>> Oleg Rostanin
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 
> .
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Download of files that are larger than 65535 Bytes (63,9K)

Posted by Oleg Rostanin <ro...@dfki.uni-kl.de>.
I have checked the Slide servlet with another client (DAVExplorer). It 
works correctly.
It means the reason must be hiding somwhere in webdav API

Oleg Rostanin wrote:

> Hello everyone,
>
> I'm writing a universal module for UP/Downloading files to/from WebDAV 
> repositories.
> I have encountered the strange problem that only files with the size 
> up to 65535 Bytes are uploaded/downloaded correctly.
>
> If a file is larger that  only the first 65535 Bytes are uploaded or 
> downloaded.
>
> import org.apache.webdav.lib.*;
>
>    public void downloadDocument(WebdavResource resource, File 
> localFile) throws Exception
>    {
>        if(!resource.isCollection())
>        {
>            resource.getMethod(localFile);
>        }
>    }
>
>
> can anybody help me?
>
>
> Best,
> Oleg Rostanin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Download of files that are larger than 65535 Bytes (63,9K)

Posted by Oleg Rostanin <ro...@dfki.uni-kl.de>.
Hello everyone,

I'm writing a universal module for UP/Downloading files to/from WebDAV 
repositories.
I have encountered the strange problem that only files with the size up 
to 65535 Bytes are uploaded/downloaded correctly.

If a file is larger that  only the first 65535 Bytes are uploaded or 
downloaded.

import org.apache.webdav.lib.*;

    public void downloadDocument(WebdavResource resource, File 
localFile) throws Exception
    {
        if(!resource.isCollection())
        {
            resource.getMethod(localFile);
        }
    }


can anybody help me?


Best,
Oleg Rostanin


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Controlling Slide cache, was Re: patch for auto-create-users

Posted by Oliver Zeigermann <oz...@c1-fse.de>.
ExtendedStore allows you to invalidate entries. Subclass it and add your 
code that talks to your client store to find out which entries to 
delete. Use something like getTxCache().remove(null, [key to be 
invalidated] on objectsCache, permissionsCache, etc.

Oliver

Carlos Villegas wrote:

> Hi,
> 
> Daniel Florey wrote:
> 
>> If LDAP provides some notification mechanism for informing slide about 
>> user/role updates additional user/role caching would be possible to 
>> achieve better performance.
> 
> 
> I have a custom store that gets user/role info from an external source. 
>  I set it up in the Domain.xml and it's working but Slide caches the 
> objects and do not go to my store to get updated info. I can also detect 
> external updates, but how do I control the caching in Slide? I don't 
> want to disable caching completely. Is there a way to invalidate a cache 
> entry from within my store code?
> 
> Thanks,
> 
> Carlos
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 
> .
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org