Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Cocoon :
How do I send parameters to a producer
I'd like to be able to pass a custom producer the path to a configuration file. If I implement Configurable would that do the trick? What would I have to add to the Cocoon.properties file in order to pass at least a property to my custom producer?

Yes it did.

/* Add producer.myProducer.property in Cocoon.properties 
** The preceding producer get's it sent along to the producer factory
** make myProducer implement Configurable and give it an init method.
*/

public void init(Configurations conf) {
        this.myProperty = (String) conf.get("myProducer.property");
}
brettATknightsofthenetDOTcom
[Append to This Answer]
Previous: (Answer) Installation fails - Http Error 500
Next: (Answer) JServ 1.1b2 bug causes Cocoon to repeat itself
This document is: http://java.apache.org/faq/?file=311
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.