Return-Path: Delivered-To: apmail-jakarta-avalon-dev-archive@apache.org Received: (qmail 97084 invoked from network); 8 Jan 2003 14:32:40 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Jan 2003 14:32:40 -0000 Received: (qmail 7329 invoked by uid 97); 8 Jan 2003 14:33:56 -0000 Delivered-To: qmlist-jakarta-archive-avalon-dev@jakarta.apache.org Received: (qmail 7266 invoked by uid 97); 8 Jan 2003 14:33:55 -0000 Mailing-List: contact avalon-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon Developers List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-dev@jakarta.apache.org Received: (qmail 7248 invoked by uid 98); 8 Jan 2003 14:33:55 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <014001c2b722$c24d1d80$0203a8c0@NCDC> From: "mati" To: "Avalon Developers List" References: <20030107104120.69576.qmail@web80305.mail.yahoo.com> <3E1AB412.5010307@apache.org> <200301081527.20650.peter@realityforge.org> <3E1BD4B8.1060006@apache.org> <3E1BD851.2050408@yahoo.com> Subject: ThreadPool + excalibur event + Cornerstone ThreadManager Date: Wed, 8 Jan 2003 15:32:23 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have been trying to use DefaultThreadManager from excalibur event package. I just do not want to have an additional ThreadPool managed by TPCThreadManager so I thought I would use the cornerstone one The problem is that CornerStone uses old ThreadPool import org.apache.avalon.excalibur.thread.ThreadPool; which is depracated by now On the other hand AbstractThreadManager expects to get the new one, and here we have a problem import org.apache.excalibur.thread.ThreadPool; because I get exception: org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component named "my-thread-manager" failed to pass through the Initialization stage. (Reason: java.lang.IncompatibleClassChangeError). I do not know what is the proper way of solving this problem. I've spotted that Peter Donald created DefaultThreadManager (excalibur-event) so I am wondering how did he manage to force these to work with Cornerstone ThreadManager and it's ThreadPool. Here is the code snippet: public void initialize() throws Exception { //this.threadManager = new TPCThreadManager(); ThreadPool pool = this.cornerStoneThreadManager.getDefaultThreadPool(); this.newThreadManager = new DefaultThreadManager(pool); this.newThreadManager.enableLogging(getLogger().getChildLogger("excalibur-th read-manager")); newThreadManager.initialize(); } I would appreciate any feedback. TIA Mateusz Szczap mati@no.spam.ncdc.pl -- To unsubscribe, e-mail: For additional commands, e-mail: