RE: caching pattern

2005-03-29 Thread Mark Benussi
Ill put something together and send it to you, not the list as I think
people mind large files being posted.

Will try and get it out by 5pm BST

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2005 18:12
To: tomcat-user@jakarta.apache.org
Subject: RE: caching pattern

data, or as they say in new england datur

>From: "Mark Benussi" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" 
>To: "'Tomcat Users List'" 
>Subject: RE: caching pattern
>Date: Tue, 29 Mar 2005 16:01:08 +0100
>
>The content or the data?
>
>-Original Message-
>From: Didier McGillis [mailto:[EMAIL PROTECTED]
>Sent: 29 March 2005 15:59
>To: tomcat-user@jakarta.apache.org
>Subject: RE: caching pattern
>
>Are there any good examples of this?
>
> >From: "Mark Benussi" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" 
> >To: "'Tomcat Users List'" 
> >Subject: RE: caching pattern
> >Date: Tue, 29 Mar 2005 14:54:24 +0100
> >
> >If you are caching content, e.g. pages I would recommend using XSL to
> >transform the data into html, or jsp if you need. At startup and then
> >whenever it is changed.
> >
> >For data, implement a persistence pattern (Data extends BaseData class,
> >Persistence extends BasePersistence class). Then for any data you want to
> >cache extend the BaseData to override the CRUD methods to hold data in a
> >Hashtable by key lookup (Assuming your data can be looked up using a 
>single
> >key). Implement a time to live Timer (Say an hour) and then every time 
>your
> >data is read, update its time stamp for the timer to ignore.
> >
> >-Original Message-
> >From: Didier McGillis [mailto:[EMAIL PROTECTED]
> >Sent: 29 March 2005 14:17
> >To: tomcat-user@jakarta.apache.org
> >Subject: Re: caching pattern
> >
> >A listing of some names, and some static content, the content is pulled
> >from
> >
> >the database, but is infrequently changed
> >
> > >From: QM <[EMAIL PROTECTED]>
> > >Reply-To: "Tomcat Users List" 
> > >To: Tomcat Users List 
> > >Subject: Re: caching pattern
> > >Date: Mon, 28 Mar 2005 18:19:28 -0600
> > >
> > >On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
> > >: Im looking for an idea of how to setup a caching pattern?
> > >
> > >That's awful vague ;)
> > >
> > >What sort of caching?  Content, data, other?
> > >
> > >Depending on what you're trying to do, and your desire/willingness to
> > >use third-party tools, you may not have to write it yourself from
> > >scratch.
> > >
> > >-QM
> > >
> > >--
> > >
> > >software   -- http://www.brandxdev.net/
> > >tech news  -- http://www.RoarNetworX.com/
> > >code scan  -- http://www.JxRef.org/
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: caching pattern

2005-03-29 Thread Didier McGillis
data, or as they say in new england datur
From: "Mark Benussi" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "'Tomcat Users List'" 
Subject: RE: caching pattern
Date: Tue, 29 Mar 2005 16:01:08 +0100
The content or the data?
-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]
Sent: 29 March 2005 15:59
To: tomcat-user@jakarta.apache.org
Subject: RE: caching pattern
Are there any good examples of this?
>From: "Mark Benussi" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" 
>To: "'Tomcat Users List'" 
>Subject: RE: caching pattern
>Date: Tue, 29 Mar 2005 14:54:24 +0100
>
>If you are caching content, e.g. pages I would recommend using XSL to
>transform the data into html, or jsp if you need. At startup and then
>whenever it is changed.
>
>For data, implement a persistence pattern (Data extends BaseData class,
>Persistence extends BasePersistence class). Then for any data you want to
>cache extend the BaseData to override the CRUD methods to hold data in a
>Hashtable by key lookup (Assuming your data can be looked up using a 
single
>key). Implement a time to live Timer (Say an hour) and then every time 
your
>data is read, update its time stamp for the timer to ignore.
>
>-----Original Message-
>From: Didier McGillis [mailto:[EMAIL PROTECTED]
>Sent: 29 March 2005 14:17
>To: tomcat-user@jakarta.apache.org
>Subject: Re: caching pattern
>
>A listing of some names, and some static content, the content is pulled
>from
>
>the database, but is infrequently changed
>
> >From: QM <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" 
> >To: Tomcat Users List 
> >Subject: Re: caching pattern
> >Date: Mon, 28 Mar 2005 18:19:28 -0600
> >
> >On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
> >: Im looking for an idea of how to setup a caching pattern?
> >
> >That's awful vague ;)
> >
> >What sort of caching?  Content, data, other?
> >
> >Depending on what you're trying to do, and your desire/willingness to
> >use third-party tools, you may not have to write it yourself from
> >scratch.
> >
> >-QM
> >
> >--
> >
> >software   -- http://www.brandxdev.net/
> >tech news  -- http://www.RoarNetworX.com/
> >code scan  -- http://www.JxRef.org/
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: caching pattern

2005-03-29 Thread Mark Benussi
The content or the data?

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2005 15:59
To: tomcat-user@jakarta.apache.org
Subject: RE: caching pattern

Are there any good examples of this?

>From: "Mark Benussi" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" 
>To: "'Tomcat Users List'" 
>Subject: RE: caching pattern
>Date: Tue, 29 Mar 2005 14:54:24 +0100
>
>If you are caching content, e.g. pages I would recommend using XSL to
>transform the data into html, or jsp if you need. At startup and then
>whenever it is changed.
>
>For data, implement a persistence pattern (Data extends BaseData class,
>Persistence extends BasePersistence class). Then for any data you want to
>cache extend the BaseData to override the CRUD methods to hold data in a
>Hashtable by key lookup (Assuming your data can be looked up using a single
>key). Implement a time to live Timer (Say an hour) and then every time your
>data is read, update its time stamp for the timer to ignore.
>
>-Original Message-
>From: Didier McGillis [mailto:[EMAIL PROTECTED]
>Sent: 29 March 2005 14:17
>To: tomcat-user@jakarta.apache.org
>Subject: Re: caching pattern
>
>A listing of some names, and some static content, the content is pulled 
>from
>
>the database, but is infrequently changed
>
> >From: QM <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" 
> >To: Tomcat Users List 
> >Subject: Re: caching pattern
> >Date: Mon, 28 Mar 2005 18:19:28 -0600
> >
> >On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
> >: Im looking for an idea of how to setup a caching pattern?
> >
> >That's awful vague ;)
> >
> >What sort of caching?  Content, data, other?
> >
> >Depending on what you're trying to do, and your desire/willingness to
> >use third-party tools, you may not have to write it yourself from
> >scratch.
> >
> >-QM
> >
> >--
> >
> >software   -- http://www.brandxdev.net/
> >tech news  -- http://www.RoarNetworX.com/
> >code scan  -- http://www.JxRef.org/
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: caching pattern

2005-03-29 Thread Didier McGillis
Are there any good examples of this?
From: "Mark Benussi" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "'Tomcat Users List'" 
Subject: RE: caching pattern
Date: Tue, 29 Mar 2005 14:54:24 +0100
If you are caching content, e.g. pages I would recommend using XSL to
transform the data into html, or jsp if you need. At startup and then
whenever it is changed.
For data, implement a persistence pattern (Data extends BaseData class,
Persistence extends BasePersistence class). Then for any data you want to
cache extend the BaseData to override the CRUD methods to hold data in a
Hashtable by key lookup (Assuming your data can be looked up using a single
key). Implement a time to live Timer (Say an hour) and then every time your
data is read, update its time stamp for the timer to ignore.
-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]
Sent: 29 March 2005 14:17
To: tomcat-user@jakarta.apache.org
Subject: Re: caching pattern
A listing of some names, and some static content, the content is pulled 
from

the database, but is infrequently changed
>From: QM <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" 
>To: Tomcat Users List 
>Subject: Re: caching pattern
>Date: Mon, 28 Mar 2005 18:19:28 -0600
>
>On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
>: Im looking for an idea of how to setup a caching pattern?
>
>That's awful vague ;)
>
>What sort of caching?  Content, data, other?
>
>Depending on what you're trying to do, and your desire/willingness to
>use third-party tools, you may not have to write it yourself from
>scratch.
>
>-QM
>
>--
>
>software   -- http://www.brandxdev.net/
>tech news  -- http://www.RoarNetworX.com/
>code scan  -- http://www.JxRef.org/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: caching pattern

2005-03-29 Thread Mark Benussi
If you are caching content, e.g. pages I would recommend using XSL to
transform the data into html, or jsp if you need. At startup and then
whenever it is changed.

For data, implement a persistence pattern (Data extends BaseData class,
Persistence extends BasePersistence class). Then for any data you want to
cache extend the BaseData to override the CRUD methods to hold data in a
Hashtable by key lookup (Assuming your data can be looked up using a single
key). Implement a time to live Timer (Say an hour) and then every time your
data is read, update its time stamp for the timer to ignore.

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2005 14:17
To: tomcat-user@jakarta.apache.org
Subject: Re: caching pattern

A listing of some names, and some static content, the content is pulled from

the database, but is infrequently changed

>From: QM <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" 
>To: Tomcat Users List 
>Subject: Re: caching pattern
>Date: Mon, 28 Mar 2005 18:19:28 -0600
>
>On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
>: Im looking for an idea of how to setup a caching pattern?
>
>That's awful vague ;)
>
>What sort of caching?  Content, data, other?
>
>Depending on what you're trying to do, and your desire/willingness to
>use third-party tools, you may not have to write it yourself from
>scratch.
>
>-QM
>
>--
>
>software   -- http://www.brandxdev.net/
>tech news  -- http://www.RoarNetworX.com/
>code scan  -- http://www.JxRef.org/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: caching pattern

2005-03-29 Thread Didier McGillis
A listing of some names, and some static content, the content is pulled from 
the database, but is infrequently changed

From: QM <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: caching pattern
Date: Mon, 28 Mar 2005 18:19:28 -0600
On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
: Im looking for an idea of how to setup a caching pattern?
That's awful vague ;)
What sort of caching?  Content, data, other?
Depending on what you're trying to do, and your desire/willingness to
use third-party tools, you may not have to write it yourself from
scratch.
-QM
--
software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: caching pattern

2005-03-28 Thread QM
On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
: Im looking for an idea of how to setup a caching pattern?

That's awful vague ;)

What sort of caching?  Content, data, other?

Depending on what you're trying to do, and your desire/willingness to
use third-party tools, you may not have to write it yourself from
scratch.

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]