Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 94250 invoked from network); 17 Feb 2004 12:35:46 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Feb 2004 12:35:46 -0000 Received: (qmail 82996 invoked by uid 500); 17 Feb 2004 12:35:35 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 82980 invoked by uid 500); 17 Feb 2004 12:35:34 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 82959 invoked from network); 17 Feb 2004 12:35:34 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 17 Feb 2004 12:35:34 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1At4Rq-0004xC-00 for ; Tue, 17 Feb 2004 13:35:34 +0100 Received: from 212.222.194.100 ([212.222.194.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue Feb 17 12:35:34 2004 Received: from jh by 212.222.194.100 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue Feb 17 12:35:34 2004 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: Jorg Heymans Subject: Re: Can not configure components by web.xml Date: Tue, 17 Feb 2004 13:35:10 +0100 Lines: 15 Message-ID: References: <4031D3B6.5070605@virgil.nl> <4031D744.60001@virgil.nl> <4031F8CA.60504@virgil.nl> <40320796.1090601@virgil.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 212.222.194.100 User-Agent: Mozilla Thunderbird M5 (20040119) X-Accept-Language: en-us, en In-Reply-To: <40320796.1090601@virgil.nl> Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > Trouble is that the servlet engine creates the instance of the servlet. > The getInstance() method on the ConfigurationServlet *might* return null > if the servlet engine did not initialize the servlet before I request > the configuration. Because I know the CocoonServlet has a lot of > initialization to do before my component is launched and the > ConfigurationServlet is requested to retreive the configuration it does > not make it a safe sollution. can't you get around this with the directive in web.xml ? IIRC if you put the cocoon servlet as 2 and your config servlet as 1 then the servlet container will load your config before cocoon (don't know if this is guaranteed behaviour though - look into your container docs) Jorg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org