Hi,
 
great to see that you found a solution to your problem. Btw, it's no
surprise that 
 
<cache-type cache="none"/>
 
does not work, as the correct entry should be 
 
<cache-type type="none"/>
 
Regards
Werner


________________________________

        From: Avalivin Jhons [mailto:[EMAIL PROTECTED] 
        Sent: Dienstag, 07. Februar 2006 10:43
        To: dev@castor.codehaus.org
        Subject: RE: [castor-dev] Cacheing Problem in Web Application
        
        
        Thanks Werner & Ralf,
        The cache problem is resolved with
database.getCacheManager().expireCache() in castor-1.0M2.jar.
<cache-type cache="none"/>  still cache object though. 
        <!--[if !supportEmptyParas]--> <!--[endif]-->Regards,

        Werner Guttmann <[EMAIL PROTECTED]> wrote: 

                Hi Anjan,
                
                as fas as I remember, the feature(s) described by Ralf
are available for
                more recent releases only, i.e. 0.9.9 and later.
Especially the
                CacheManager class has only been added 'recently'.
                
                Regards
                Werner Guttmann
                
                ________________________________
                
                From: Avalivin Jhons [mailto:[EMAIL PROTECTED] 
                Sent: Montag, 06. Februar 2006 10:51
                To: dev@castor.codehaus.org; user@castor.codehaus.org
                Subject: Re: [castor-dev] Cacheing Problem in Web
Application
                
                
                
                Thanks Ralf,
                The cache type is already set to "none" by 
                cache="none"/> and attempt is also made in the code to
clear the cache
                by db.expireCache(ClassArray,ObjectArray) once the
objects being
                fetched from db. Seems like can't stop the
                caching behaviour of castor, nor
Database.expireCache(Class[], Object[])
                works. I am using Castor-0.9.5.3.jar. Is this a bug?
                Thanks,
                Anjan
                
                
                
                Ralf Joachim wrote:
                
                Hi Avalivin,
                
                The best would be if you also add the object of step 2
                through castor. 
                If you do so castor would know that the object loaded in
                step 3 has changed.
                
                Another option is the switch off caching for the class
                in question by 
                setting .
                
                The third posibility is to clean up the cache by hand
                through CacheManager.
                
                Regards
                Ralf
                
                
                Avalivin Jhons schrieb:
                > Hi [EMAIL PROTECTED] , please have a look.
                > My web application uses Castor jdo and I have seen the
                problem explained 
                > below.
                > Step 1: A Servlet makes an OQL and fetches an object
                and the object is 
                > displayed.
                > 
                > Step 2: In the next request the Servlet adds an object
                to the object 
                > receiver in the first request through jdbc, and
                commits.
                > 
                > Step3. Servlet makes an OQL (same as Step 1) but
                doesn't display the 
                > object added in the Step2.
                > 
                > Instead of making a new OQL to get new object, Castor
                returns the object 
                > retrieved in the previous request. 
                > 
                > How to stop this behaviour of castor?
                > 
                > When the server is restarted the objects added in the
                Step2 are 
                > displayed in the first request.
                > 
                > Avalovin.
                > 
                > Send instant messages to your online friends
                http://uk.messenger.yahoo.com
                > 
                
                -------------------------------------------------
                If you wish to unsubscribe from this list, please 
                send an empty message to the following address:
                
                [EMAIL PROTECTED]
                -------------------------------------------------
                
                
                
                
                Send instant messages to your online friends
                http://uk.messenger.yahoo.com 
                
                
                -------------------------------------------------
                If you wish to unsubscribe from this list, please
                send an empty message to the following address:
                
                [EMAIL PROTECTED]
                -------------------------------------------------
                
                


        Send instant messages to your online friends
http://uk.messenger.yahoo.com 


-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to