RE: Urgent: Execution of pipeline at startup

2002-03-04 Thread Chitharanjan Das

Thank you for your quick response.

After going thru the components information , sitemap basically consists
of information regarding components and pipelines.

I have designed a Component, which basically extends
org.apache.avalon.framework.component.Component and as you specified it
has I have embedded the logic in start() and run() methods..

The questions I have is
1. How do I register this components, currently in the sitemap, the
components defined are generators, transformers, serializers, actions,
selectors and readers?

Could you please briefly explain as how to register my component in the
sitemap.

2. The only method which is defined in the Component interface is a log
method. Which class/interface should I extend so that the particular
method (which will iunvoke my start())gets invoked during startup.

I hope I am clear...

Thanks for your information in advance,
Regds,
Chiths


-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, March 02, 2002 7:51 AM
To: 'Chitharanjan Das'
Subject: RE: Urgent: Execution of pipeline at startup

You could write own ThreadSafe, Runnable, Startable Component. It will
be loaded and started automatically on Cocoon startup. You can do
whatever you want in the start() or run() methods.

Vadim

 -Original Message-
 From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, March 02, 2002 2:05 AM
 To: [EMAIL PROTECTED]
 Subject: Urgent: Execution of pipeline at startup
 
 Hello,
   I had raised this issue earlier...
 Please confirm if this is possible at all.
 
 I need to cache some data structures and some schema elements.
 
 Is there a way to execute a pipeline or any other possibilities to
cache
 the information at COCOON'S startup.
 
 Currently, I am performing this caching at first access.
 
 I would surely like to cache the information at startup, rather than
at
 first access...
 
 Could any of you please provide an approach and if already
implemented,
 please share the implementation.
 
 Regds,
 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]




RE: Urgent: Execution of pipeline at startup

2002-03-04 Thread Vadim Gritsenko

Your component can implement:
 - ThreadSafe
 - Runnable
 - Startable
 - Stoppable
 - Configurable
 - Parameterizable
 - ...

Read Developing with Avalon on the jakarta.apache.org/Avalon for more
info. See also comments in these interfaces.

Then, you will have methods:
 - run()
 - start()
 - stop()
 - configure()
 - parameterize()


Your component should be declared in the cocoon.xconf. Declaration could
look like:

component role=com.mycompany.myproject.MyComponent
class=com.mycompany.myproject.MyComponentImpl

  !-- for parameterizable: --
  parameter name=param value=value/

/component

PS If you need logger, it is good idea to extend from AbstractLoggable.

Vadim

 -Original Message-
 From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 04, 2002 6:59 PM
 To: 'Vadim Gritsenko'; [EMAIL PROTECTED]
 Subject: RE: Urgent: Execution of pipeline at startup
 
 Thank you for your quick response.
 
 After going thru the components information , sitemap basically
consists
 of information regarding components and pipelines.
 
 I have designed a Component, which basically extends
 org.apache.avalon.framework.component.Component and as you specified
it
 has I have embedded the logic in start() and run() methods..
 
 The questions I have is
 1. How do I register this components, currently in the sitemap, the
 components defined are generators, transformers, serializers, actions,
 selectors and readers?
 
 Could you please briefly explain as how to register my component in
the
 sitemap.
 
 2. The only method which is defined in the Component interface is a
log
 method. Which class/interface should I extend so that the particular
 method (which will iunvoke my start())gets invoked during startup.
 
 I hope I am clear...
 
 Thanks for your information in advance,
 Regds,
 Chiths
 
 
 -Original Message-
 From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, March 02, 2002 7:51 AM
 To: 'Chitharanjan Das'
 Subject: RE: Urgent: Execution of pipeline at startup
 
 You could write own ThreadSafe, Runnable, Startable Component. It will
 be loaded and started automatically on Cocoon startup. You can do
 whatever you want in the start() or run() methods.
 
 Vadim
 
  -Original Message-
  From: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
  Sent: Saturday, March 02, 2002 2:05 AM
  To: [EMAIL PROTECTED]
  Subject: Urgent: Execution of pipeline at startup
 
  Hello,
  I had raised this issue earlier...
  Please confirm if this is possible at all.
 
  I need to cache some data structures and some schema elements.
 
  Is there a way to execute a pipeline or any other possibilities to
 cache
  the information at COCOON'S startup.
 
  Currently, I am performing this caching at first access.
 
  I would surely like to cache the information at startup, rather than
 at
  first access...
 
  Could any of you please provide an approach and if already
 implemented,
  please share the implementation.
 
  Regds,
  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]




Re: Urgent: Execution of pipeline at startup

2002-03-02 Thread Christian Haul

On 01.Mar.2002 -- 11:04 PM, Chitharanjan Das wrote:
 Hello,
   I had raised this issue earlier...
 Please confirm if this is possible at all.
 
 I need to cache some data structures and some schema elements.
 
 Is there a way to execute a pipeline or any other possibilities to cache
 the information at COCOON'S startup.
 
 Currently, I am performing this caching at first access.
 
 I would surely like to cache the information at startup, rather than at
 first access...

I know of two possibilities: use the -precompile target when building your
war or use a spider after startup so that all pages are generated then.

Chris.

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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: Urgent: Execution of pipeline at startup

2002-03-02 Thread Chitharanjan Das


Hello,
It's not the precompilation of JSP or XSP I am talking about.
But caching of datastructures , role definitions, access-controls ,
schema of data structure etc.

These will be typically defined in a database.

So What I am looking for is a callback or a hookup to execute a pipeline
when cocoon starts up

Regds,
Chiths







 ===

-Original Message-
From: Christian Haul [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, March 02, 2002 2:23 AM
To: [EMAIL PROTECTED]
Subject: Re: Urgent: Execution of pipeline at startup

On 01.Mar.2002 -- 11:04 PM, Chitharanjan Das wrote:
 Hello,
   I had raised this issue earlier...
 Please confirm if this is possible at all.
 
 I need to cache some data structures and some schema elements.
 
 Is there a way to execute a pipeline or any other possibilities to
cache
 the information at COCOON'S startup.
 
 Currently, I am performing this caching at first access.
 
 I would surely like to cache the information at startup, rather than
at
 first access...

I know of two possibilities: use the -precompile target when building
your
war or use a spider after startup so that all pages are generated then.

Chris.


C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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]