RE: How do i disable caching for Transformers - Please help...

2002-02-12 Thread giacomo

On Tue, 12 Feb 2002, Chitharanjan Das wrote:

> Hello Vadim,
>   Thank U for your help...
> My question is quite different though
>
> I have developed a transformer by name StringTransformer, which attempts
> to get hold of the XML String, perform some logic transformation via
> different logic beans and pass the converted stream down the pipeline
>
>
> During testing, I am modifing the code and restarting the webserver.
>
> To disable caching of objects I did the following
>
>   
>logger="root.store">
>  
>  
>   
>
> I presume that the above will disable the storing of objects...
>
>
> I then restart the webserver and test the pipe-line again
>
>
> In the log file , I get the following message..
>
> DEBUG   (2002-02-12) 09:28.19:360   [cocoon  ] (/accordia/tsttr)
> HttpProcessor[8080][4]/DefaultPool: Retrieving a
> com.accordia.display.transformation.StringTransformer from the pool
>  --- WHY IS THIS , Do this mean it was restored from Cache ?

Cache and Pool are different things! Cache holds produced pipeline
output, Pools hold component to prevent instantiation and garbage
collection cycles.

So, Transformers get pooled because they are not thread safe.

Giacomo

>
>
> DEBUG   (2002-02-12) 09:28.19:791   [cocoon  ] (/accordia/tsttr)
> HttpProcessor[8080][4]/DefaultPool: Returning a
> com.accordia.display.transformation.StringTransformer to the pool
>   -- Does this mean, This will be cached eventually ?
>
>
> What
>
>
>
> -Original Message-----
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 9:27 AM
> To: [EMAIL PROTECTED]
> Subject: RE: How do i disable caching for Transformers...
>
> Transformers are not cacheable by default.
>
> Read Cacheable.java from the org.apache.cocoon.caching package, see
> TraxTransformer.java (or others implementing Cacheable) for examples of
> cacheable transformers.
>
> Vadim
>
> > From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
> >
> > How do I disable caching for the transformers?
> >
> > I am experimenting with transformers and I am not able to remove
> objects
> > cached for transformers.
> > To disable caching I did the following..
> >
> > In cocoon.xcomf, I enabled the non caching event pipeline
> >  >
> class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>
> >
> >
> > I then restarted Cocoon and still in log file I get the info
> >
> > DEBUG   (2002-02-12) 01:57.54:730   [cocoon  ] (/accordia/tsttr)
> > HttpProcessor[8080][4]/DefaultPool: Retrieving a
> > com.accordia.display.transformation.StringTransformer from the pool
> >
> > How can I disable caching ? or how do I delete cached objects ?
> >
> > The only way I am able to test is by changing the transformer names in
> > site-map for each run, which is kind a pain
> >
> > Could any one of you please, provide a small note on cache options for
> > Cocoon for Generators, Actions , Transformers etc.,
> >
> > Thanks in advance,
> > Chiths
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




RE: How do i disable caching for Transformers - Please help...

2002-02-12 Thread Chitharanjan Das

Hello Vadim,
Thank U for your help...
My question is quite different though

I have developed a transformer by name StringTransformer, which attempts
to get hold of the XML String, perform some logic transformation via
different logic beans and pass the converted stream down the pipeline


During testing, I am modifing the code and restarting the webserver.

To disable caching of objects I did the following

  
  
 
 
  

I presume that the above will disable the storing of objects...


I then restart the webserver and test the pipe-line again


In the log file , I get the following message..

DEBUG   (2002-02-12) 09:28.19:360   [cocoon  ] (/accordia/tsttr)
HttpProcessor[8080][4]/DefaultPool: Retrieving a
com.accordia.display.transformation.StringTransformer from the pool
 --- WHY IS THIS , Do this mean it was restored from Cache ?


DEBUG   (2002-02-12) 09:28.19:791   [cocoon  ] (/accordia/tsttr)
HttpProcessor[8080][4]/DefaultPool: Returning a
com.accordia.display.transformation.StringTransformer to the pool
-- Does this mean, This will be cached eventually ?


What 



-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 12, 2002 9:27 AM
To: [EMAIL PROTECTED]
Subject: RE: How do i disable caching for Transformers...

Transformers are not cacheable by default.

Read Cacheable.java from the org.apache.cocoon.caching package, see
TraxTransformer.java (or others implementing Cacheable) for examples of
cacheable transformers.

Vadim

> From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
> 
> How do I disable caching for the transformers?
> 
> I am experimenting with transformers and I am not able to remove
objects
> cached for transformers.
> To disable caching I did the following..
> 
> In cocoon.xcomf, I enabled the non caching event pipeline
>   
class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>
> 
> 
> I then restarted Cocoon and still in log file I get the info
> 
> DEBUG   (2002-02-12) 01:57.54:730   [cocoon  ] (/accordia/tsttr)
> HttpProcessor[8080][4]/DefaultPool: Retrieving a
> com.accordia.display.transformation.StringTransformer from the pool
> 
> How can I disable caching ? or how do I delete cached objects ?
> 
> The only way I am able to test is by changing the transformer names in
> site-map for each run, which is kind a pain
> 
> Could any one of you please, provide a small note on cache options for
> Cocoon for Generators, Actions , Transformers etc.,
> 
> Thanks in advance,
> Chiths


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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





-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




RE: How do i disable caching for Transformers.......

2002-02-12 Thread Chitharanjan Das

Hello All,
You are right as always,
There was a problem in my ant script...
Transformers are not cached...
Sorry for creating any confusion 

Regds,
Chiths

Vadim

> From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
> 
> How do I disable caching for the transformers?
> 
> I am experimenting with transformers and I am not able to remove
objects
> cached for transformers.
> To disable caching I did the following..
> 
> In cocoon.xcomf, I enabled the non caching event pipeline
>   
class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>
> 
> 
> I then restarted Cocoon and still in log file I get the info
> 
> DEBUG   (2002-02-12) 01:57.54:730   [cocoon  ] (/accordia/tsttr)
> HttpProcessor[8080][4]/DefaultPool: Retrieving a
> com.accordia.display.transformation.StringTransformer from the pool
> 
> How can I disable caching ? or how do I delete cached objects ?
> 
> The only way I am able to test is by changing the transformer names in
> site-map for each run, which is kind a pain
> 
> Could any one of you please, provide a small note on cache options for
> Cocoon for Generators, Actions , Transformers etc.,
> 
> Thanks in advance,
> Chiths


-
Please check that your question has not already been answered in the
FAQ before posting. 

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





-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: How do i disable caching for Transformers.......

2002-02-12 Thread Nicola Ken Barozzi


- Original Message -
From: "Chitharanjan Das" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 8:01 AM
Subject: RE: How do i disable caching for Transformers...


> How do I disable caching for the transformers?
...
> To disable caching I did the following..
>
> In cocoon.xcomf, I enabled the non caching event pipeline
>  class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>

This disables caching of the contents of the reply, not the Transformers
themselves.

> I then restarted Cocoon and still in log file I get the info
>
> DEBUG   (2002-02-12) 01:57.54:730   [cocoon  ] (/accordia/tsttr)
> HttpProcessor[8080][4]/DefaultPool: Retrieving a
> com.accordia.display.transformation.StringTransformer from the pool

This means that the StringTransformer instance is gotten from the pool
instead of been recreated.

> How can I disable caching ? or how do I delete cached objects ?

This behaviour has to do with the Avalon-type ComponentManager that manages
the Avalon objects (all Cocoon components are Avalon components).
In the latest CVS, some components are configured in cocoon.xconf, but it is
almost the same for the sitemap.
In cocoon.xconf:

  

  ^     
  false
  false
  false

  

pool-* parameters tell the ComponentManager how to pool the component.

--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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




RE: How do i disable caching for Transformers.......

2002-02-12 Thread Vadim Gritsenko

Transformers are not cacheable by default.

Read Cacheable.java from the org.apache.cocoon.caching package, see
TraxTransformer.java (or others implementing Cacheable) for examples of
cacheable transformers.

Vadim

> From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
> 
> How do I disable caching for the transformers?
> 
> I am experimenting with transformers and I am not able to remove
objects
> cached for transformers.
> To disable caching I did the following..
> 
> In cocoon.xcomf, I enabled the non caching event pipeline
>   
class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>
> 
> 
> I then restarted Cocoon and still in log file I get the info
> 
> DEBUG   (2002-02-12) 01:57.54:730   [cocoon  ] (/accordia/tsttr)
> HttpProcessor[8080][4]/DefaultPool: Retrieving a
> com.accordia.display.transformation.StringTransformer from the pool
> 
> How can I disable caching ? or how do I delete cached objects ?
> 
> The only way I am able to test is by changing the transformer names in
> site-map for each run, which is kind a pain
> 
> Could any one of you please, provide a small note on cache options for
> Cocoon for Generators, Actions , Transformers etc.,
> 
> Thanks in advance,
> Chiths


-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: How do i disable caching for Transformers.......

2002-02-12 Thread Chitharanjan Das



How do I disable caching for the transformers?

I am experimenting with transformers and I am not able to remove objects
cached for transformers.
To disable caching I did the following..

In cocoon.xcomf, I enabled the non caching event pipeline



I then restarted Cocoon and still in log file I get the info

DEBUG   (2002-02-12) 01:57.54:730   [cocoon  ] (/accordia/tsttr)
HttpProcessor[8080][4]/DefaultPool: Retrieving a
com.accordia.display.transformation.StringTransformer from the pool

How can I disable caching ? or how do I delete cached objects ?

The only way I am able to test is by changing the transformer names in
site-map for each run, which is kind a pain

Could any one of you please, provide a small note on cache options for
Cocoon for Generators, Actions , Transformers etc.,

Thanks in advance,
Chiths





-
Please check that your question has not already been answered in the
FAQ before posting. 

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