Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 51060 invoked by uid 500); 4 May 2001 16:09:17 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 50978 invoked from network); 4 May 2001 16:09:01 -0000 Message-Id: <5.1.0.14.0.20010504115331.0203f190@pop> X-Sender: proyal@pop X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 04 May 2001 12:07:43 -0400 To: cocoon-users@xml.apache.org From: Peter Royal Subject: [C2] Adding custom Avalon components Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-OriginalArrivalTime: 04 May 2001 16:07:43.0958 (UTC) FILETIME=[5A3DDF60:01C0D4B4] X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N (If this needs to go to the dev list let me know, I've subbed to that also. I'm uncertain as to where usage questions belong at the moment) I'm working on re-writing a legacy application (originally in Basic2C for the wang!) with cocoon. I've got a simple prototype up and working in C1 and now i'm porting that to C2 before starting full-fledged development. In C1 I had a single producer that handled everything. Upon its initialization I would add a custom Actor to the director. Obviously that is no longer a valid approach in C2 :) I've figured out that I need to create my own avalon-based component. From reading the C2-dev list archives, I've figured out that I need to define a role and then provide a class to implement it (info from http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=98691119526333&w=2). I see that C2 has its roles defined in cocoon.roles, and then pulls the actors for those roles from cocoon.xconf. I'd like to have my component created and added to the component manager when cocoon inits. I realize that I could add my component information to both the .roles and .xconf file, but since the .roles file in buried in the cocoon source tree (and thus in the jar for deployment). So, my question is, what is the sanctioned way of added new roles to the system? If there isn't one, any suggestions/recommendations on how I should go about writing that patch? :) -pete -- peter royal -> proyal@managingpartners.com managing partners, inc. -> http://www.managingpartners.com --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: