Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 11256 invoked from network); 18 Jun 2009 10:31:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jun 2009 10:31:49 -0000 Received: (qmail 80664 invoked by uid 500); 18 Jun 2009 10:32:00 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 80604 invoked by uid 500); 18 Jun 2009 10:32:00 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 80596 invoked by uid 99); 18 Jun 2009 10:32:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 10:32:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 10:31:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MHEu0-0006Md-Nl for user@geronimo.apache.org; Thu, 18 Jun 2009 03:31:28 -0700 Message-ID: <24090342.post@talk.nabble.com> Date: Thu, 18 Jun 2009 03:31:28 -0700 (PDT) From: stig larsen To: user@geronimo.apache.org Subject: Re: Dynamically load jars in running state In-Reply-To: <5e7fd1eb0906180309g6faac1ebm40f18b326db31468@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: stig@exectiva.no References: <24087873.post@talk.nabble.com> <5e7fd1eb0906180309g6faac1ebm40f18b326db31468@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Thank you for your swift reply Jack, I'm also looking into the Gbean and dependency injection, and it seems like it could be done from here aswell? The idea is to insert this extensions (jar file) to the geronimo repository and dynamically load them from there. Is using MultiParentClassLoader the preferred method? Best regards, Stig Even Larsen Jack Cai wrote: > > There is a very Geronimo-specific way with which you can hack with the > application classloader. > > import org.apache.geronimo.kernel.config.MultiParentClassLoader; > > ... > url = a certain folder or a jar file > MultiParentClassLoader cl = (MultiParentClassLoader) > Thread.currentThread.getContextClassloader(); > cl.addURL(url); > ... > > Good luck. > > -Jack > > 2009/6/18 stig larsen > >> >> Hi, >> >> We have an application that we wish to extend its capabilities in running >> state. >> I want to load jars into geronimo and make them appear in the classpath >> so >> my application can use them without restarting. >> >> Is there a way to to this? >> >> Best regards, >> Stig Even Larsen >> -- >> View this message in context: >> http://www.nabble.com/Dynamically-load-jars-in-running-state-tp24087873s134p24087873.html >> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Dynamically-load-jars-in-running-state-tp24087873s134p24090342.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.