Re: caching proposals: SQLTransformer and Request

2003-06-27 Thread David Kavanagh
Christian, When we've had the need to cache a query, we just throw the result (as a DOM object) into the sesssion. I'm including the sample pipeline. I'll typicailly aggregate the results of this with something else (usually a dynamic query) and I'm all set. When I want to clear the cache, the

RE: caching proposals: SQLTransformer and Request

2003-06-27 Thread Christian Kurz
I just skimmed through the mailing list to find ideas of how to cache a pipeline starting with a request generator and later on passing data through the SQLTransformer. Did you or anybody else follow up on this idea? NB: Caching of the request generator would probably also need to cache request

Re: caching

2003-02-27 Thread Charles Yates
Reinhard Pötz wrote: As already mentioned I don't know how to set the expiration time. If you use a source the only way to pass a parameter is the source string itself (at least AFAIK). I'm not sure if something like cache:3h//cocoon://resource/that/takes/a/long/time or cache:100m//cocoon://res

RE: caching

2003-02-27 Thread Reinhard Pötz
> From: Charles Yates [mailto:[EMAIL PROTECTED] > > It uses DeltaTimeCacheValidity which accepts a time value in its > constructor: > > http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/caching > /DeltaTimeCacheValidity.html > > The CacheableSource creates one of these in its > cons

Re: caching

2003-02-27 Thread Charles Yates
TED] Sent: Thursday, February 27, 2003 2:56 PM To: [EMAIL PROTECTED] Subject: Re: caching I am curently testing a 'CacheableSource' and 'CacheableSourceFactory' that does these things. Its not ready for prime time yet but it does do the things mentioned here.

RE: caching

2003-02-27 Thread Reinhard Pötz
D] > Subject: Re: caching > > > I am curently testing a 'CacheableSource' and > 'CacheableSourceFactory' that does these things. Its not > ready for prime time yet but it does do the things mentioned > here. Used like this: > > cache://http://ww

Re: caching

2003-02-27 Thread Charles Yates
nt: Thursday, February 27, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: RE: caching From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] Reinhard Pötz wrote: Do you know whether there is some mechanism to get the old (=expired) content if the external source

RE: caching

2003-02-27 Thread Carsten Ziegeler
> -Original Message- > From: Reinhard Pötz [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 12:39 PM > To: [EMAIL PROTECTED] > Subject: RE: caching > > > > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > > Reinhard Pötz wrote: > >

RE: caching

2003-02-27 Thread Reinhard Pötz
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > Reinhard Pötz wrote: > > > > Do you know whether there is some mechanism to get the old > > > (=expired) > > > > content if the external source is not available after it expired? > > > > > > > No, it's not possible. > > > > At which 'level' woul

RE: caching

2003-02-27 Thread Carsten Ziegeler
Reinhard Pötz wrote: > > > Do you know whether there is some mechanism to get the old > > (=expired) > > > content if the external source is not available after it expired? > > > > > No, it's not possible. > > At which 'level' would you solve that problem? Would you write a special > generator? > Y

RE: caching

2003-02-27 Thread Reinhard Pötz
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > > From: Reinhard Pötz [mailto:[EMAIL PROTECTED] > > > > > Gianugo is changing some parts in the cocoon caching. > Then you will > > > be able to cache the complete pipeline for the expiration date > > > without creating your own custom genera

RE: caching

2003-02-27 Thread Carsten Ziegeler
> From: Reinhard Pötz [mailto:[EMAIL PROTECTED] > > > Gianugo is changing some parts in the cocoon caching. Then > > you will be able to cache the complete pipeline for the > > expiration date without creating your own custom generator. > > Do you know whether there is some mechanism to get the old

RE: caching

2003-02-27 Thread Reinhard Pötz
> Gianugo is changing some parts in the cocoon caching. Then > you will be able to cache the complete pipeline for the > expiration date without creating your own custom generator. Do you know whether there is some mechanism to get the old (=expired) content if the external source is not availab

RE: caching

2003-02-27 Thread Carsten Ziegeler
> -Original Message- > From: arturl [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 11:35 AM > To: [EMAIL PROTECTED] > Subject: caching > > > Hello, > I've asked this question some time ago, but got no answer. > Is it possible to cache the content produced from file genera

Re: Caching XML file

2002-11-20 Thread Kamal Shah
Hi, I have a 16MB XML file. I want to know how to cache it. It is used in the generator. 1. Do i need to restart tomcat once i change the cocoon.xconf file 2. Does the generator need additional paramerters? 3. Is there anything wrong with cocoon.xconf I tried the standard things that I found

Re: Caching results of SQL Queries?

2002-11-15 Thread Jeremy Quinn
On Friday, Nov 15, 2002, at 17:43 Europe/London, Justin Fagnani-Bell wrote: If you're doing the SQL queries in a custom component (generator, transformer) you can use Cocoon's caching system. Have you class implement Cachable, and in the generateValidity() method you can return an object wi

Re: Caching results of SQL Queries?

2002-11-15 Thread Justin Fagnani-Bell
Jeremy, If you're doing the SQL queries in a custom component (generator, transformer) you can use Cocoon's caching system. Have you class implement Cachable, and in the generateValidity() method you can return an object with the last modification date of the database. see : http://xml.apach

Re: Caching results of SQL Queries?

2002-11-15 Thread Christian Haul
On 14.Nov.2002 -- 11:37 AM, Jeremy Quinn wrote: > Dear All, > > I have a set of related Tables in MySQL, which are used to build part > of a site I am working on. > > We use SQL because of the related nature of the data, rather than any > great need for dynamics. > > My SQL queries are broken

RE: caching strategy

2002-07-30 Thread Vadim Gritsenko
cheable (in accordance with http spec). Vadim > Thanks, > Elmar > > -Ursprüngliche Nachricht- > Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 26. Juli 2002 15:24 > An: [EMAIL PROTECTED] > Betreff: RE: caching strategy > > &

RE: caching strategy

2002-07-25 Thread Mark S. Kent
I got sidetracked and am now trying (once again) to get Cocoon2 running on our Linux server. We are using Cocoon 2.0.2, Tomcat 3.2.2 (with Apache), RedHat 7.1, and IBM JDK 1.3.0. My last post (12 Apr 2002) left me with this error message on Cocoon startup: message Language Exception descriptio

RE: caching strategy

2002-07-25 Thread Vadim Gritsenko
> From: Sternath Elmar [mailto:[EMAIL PROTECTED]] > > Hello, > > I wrote an application reading data from another application server and > sending requests to this application server which manipulate these data and > reread the manipulated data. All this is done inside one pipeline using > URLMa

RE: Caching DirectoryGenerator.

2002-07-12 Thread Vadim Gritsenko
> From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] > > I am currently using DirectoryGenerator. > My concern is that it is probably a non-cacheable component, so each time > a request is made, each time a listing of my directory is made. > > Of course, files in my directory change once in a centu

RE: caching proposals: SQLTransformer and Request

2002-05-10 Thread Stephen Ng
RequestGenerator *should* cache. Give me a good reason why it shouldn't have caching! --Steve > -Original Message- > From: Stephen Ng [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 7:23 PM > To: 'Vadim Gritsenko'; [EMAIL PROTECTED] >

RE: caching proposals: SQLTransformer and Request

2002-05-10 Thread Stephen Ng
> May be you should consider different design, which is suited > better for > the problem? XSP pages with ESQL provide easy ability to program any > caching behavior. > What?!? You just convinced me to go from XSP/ESQL to SQLTransformer! The problem with ESQL is the Java recompilation, which is

RE: caching proposals: SQLTransformer and Request

2002-05-10 Thread Vadim Gritsenko
> From: Stephen Ng [mailto:[EMAIL PROTECTED]] > > A couple of things I'd like to do with Cocoon caching; let me know if this > is crazy. > > 1. Add caching to the request generator. Many of my pipelines are > transformations based upon the request, and since requestGenerator currently > does no

RE: caching proposals

2002-05-10 Thread Michael Cortez
What I'd like to see is a flag that I can use to mark a map as cached and the ability to specify a time-out. For example: In this case, what'ever is returned by "test", no matter what it is or how it was generated would be cached for 300 seconds. The map wouldn't even try to

RE: Caching, Xindice, Aggregate

2002-05-07 Thread Vadim Gritsenko
> From: Michael Cortez [mailto:[EMAIL PROTECTED]] > > >> It does not *execute* XSP page neither *calls* XSP page. > >> It merely *reads* XSP page, that's it. > > Ah, my mistake then, sorry. The interesting thing to note, is that it did > not give any errors calling it the way I did -- and when

RE: Caching of external documents

2002-05-07 Thread Vadim Gritsenko
> From: John Gilbertson [mailto:[EMAIL PROTECTED]] > > On Fri, 3 May 2002, Vadim Gritsenko wrote: > > >> The cached version it's using was me trying in work yesterday.. this > >> morning it's still using that cached version, even though it's > >> requesting the file each time I request the page

RE: Caching of external documents

2002-05-07 Thread John Gilbertson
On Fri, 3 May 2002, Vadim Gritsenko wrote: >> The cached version it's using was me trying in work yesterday.. this >> morning it's still using that cached version, even though it's >> requesting the file each time I request the page from it. > >Check last modified time in the HTTP response of you

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Michael Cortez
>> It does not *execute* XSP page neither *calls* XSP page. >> It merely *reads* XSP page, that's it. Ah, my mistake then, sorry. The interesting thing to note, is that it did not give any errors calling it the way I did -- and when I remove the elements from the file and "read it" the way I

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko
> From: Michael Cortez [mailto:[EMAIL PROTECTED]] > > >> Do you know about strip-root attribute? > >> > > Uh, no -- So I can just do > > > > That would be so much better for me. Yes. > >> This is not valid XSP page. It must have one and only one > >> element inside > >> xsp:page elemen

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Michael Cortez
>> Well... uh, it runs ==> >> http://fclistserver.fullcoll.edu:8080/cocoon/ogl/Item78 >> And here is the one that fails 3-4 out of five times -- but works sometimes -- just keep refreshing... I don't get it... http://fclistserver.fullcoll.edu:8080/cocoon/ogc/Item78.htm For the above page, I'

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko
> From: Michael Cortez [mailto:[EMAIL PROTECTED]] > > >> What do you mean - xsp:page stuck? It should never > >> ever happen after XSP is correctly processed by the > >> serverpages generator. May be you have problem with > >> the XSP? > > Perhaps it's the way I'm using it... > > In my system,

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Michael Cortez
>> Do you know about strip-root attribute? >> Uh, no -- So I can just do That would be so much better for me. >> This is not valid XSP page. It must have one and only one >> element inside >> xsp:page element. >> Well... uh, it runs ==> http://fclistserver.fullcoll.edu:8080/cocoon/o

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko
> From: Michael Cortez [mailto:[EMAIL PROTECTED]] > > >> What do you mean - xsp:page stuck? It should never > >> ever happen after XSP is correctly processed by the > >> serverpages generator. May be you have problem with > >> the XSP? > > Perhaps it's the way I'm using it... > > In my system,

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Michael Cortez
>> What do you mean - xsp:page stuck? It should never >> ever happen after XSP is correctly processed by the >> serverpages generator. May be you have problem with >> the XSP? Perhaps it's the way I'm using it... In my system, I'm building up a number of DocBook pages from XML fragments pul

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko
> From: Michael Cortez [mailto:[EMAIL PROTECTED]] > > >> Don't think so. You have document() function somewhere, > >> and for some reason, Cocoon failed to resolve the document: > > What I can't figure out is why the page renders at all! When I start up > Cocoon, my first request to the page wo

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Michael Cortez
>> Don't think so. You have document() function somewhere, >> and for some reason, Cocoon failed to resolve the document: What I can't figure out is why the page renders at all! When I start up Cocoon, my first request to the page works. Then the next 1-3 requests return the null pointer excep

RE: Caching, Xindice, Aggregate

2002-05-06 Thread Vadim Gritsenko
> From: Michael Cortez [mailto:[EMAIL PROTECTED]] > > Now that I've solved my DocBook rendering problem, I'm getting a new > problem. > > Approximately every other request fails with a null pointer exception. > Attached below is the full stack trace. > > I noticed, combing through it that it wa

RE: Caching of external documents

2002-05-03 Thread Vadim Gritsenko
> From: John Gilbertson [mailto:[EMAIL PROTECTED]] > > I'm trying to link Cocoon with Zope, to take advantage of all of Zope's > CMS features and interface etc, but havin git output XML for use in > cocoon to produce nicely formatted web-pages, with the option of > converting them to .rtf .pdf or

Re: Caching and accessing Cocoon 2 via mod_proxy

2002-01-18 Thread Gianugo Rabellino
Simeon Walker wrote: > Hi, > I'm thinking of using Apache and mod_proxy as a front end > to Cocoon 2. Has anyone done this? I did it once with Cocoon 1.8. It works but don't expect high figures: we are working on it, but as of now there is almost no way to cleverly work on the "Expires" hea

Re: Caching

2001-12-04 Thread Nicola Ken Barozzi
- Original Message - From: "Roberto Lo Giacco" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 03, 2001 9:13 PM Subject: Caching > Hello all, > I'm not registered on this list, so I hope the system will accept my email > and you'll answer me not just on the mailing li