Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 79992 invoked from network); 16 Dec 2008 16:30:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Dec 2008 16:30:05 -0000 Received: (qmail 54944 invoked by uid 500); 16 Dec 2008 16:30:09 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 54911 invoked by uid 500); 16 Dec 2008 16:30:09 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 54902 invoked by uid 99); 16 Dec 2008 16:30:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2008 08:30:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robertlazarski@gmail.com designates 209.85.217.15 as permitted sender) Received: from [209.85.217.15] (HELO mail-gx0-f15.google.com) (209.85.217.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2008 16:29:48 +0000 Received: by gxk8 with SMTP id 8so852gxk.16 for ; Tue, 16 Dec 2008 08:29:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rLIGMDRzLLXRcqlGEzmc1viBBnBj8XDkqI0jGWlxPdU=; b=sxpUxvYTB3msPahmZaBbPIE4JOgc2snh+0yBjE+sSNqy+tLIA8fZCeJpDp4+WuheBO RVzyrF0GKdGdvnz6pbTkzyzLWUe8a75/BSRI/y6YMJbV0rvJWJtqsHMS98Suj8226dBW KVW0TW1xlHpD1Q0wUeTAiOaAmlM9cBF+juFXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=OeX5PXb5mshzL5j7fnWBPnt1EWTPh5a/o98LvKaUTJZapyOefkCCn4XnDMl1LzefUd e+5urZVQgCypNnC3CaKBjnA1+FuuQBpSFAHB0o6AOFJo8kCqZ8WXoL7XdLRgLl+T3VTv aFxqbTjsQLQ36L7sUvyk1WYcCnf5pydcEVc1E= Received: by 10.150.192.7 with SMTP id p7mr15021462ybf.132.1229444967432; Tue, 16 Dec 2008 08:29:27 -0800 (PST) Received: by 10.151.68.3 with HTTP; Tue, 16 Dec 2008 08:29:27 -0800 (PST) Message-ID: Date: Tue, 16 Dec 2008 13:29:27 -0300 From: "robert lazarski" To: axis-user@ws.apache.org Subject: Re: Axis2 module + Spring In-Reply-To: <3C1BC276576C4B358EA973E7536B2C79@pfrenchltop> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <915077F55AED4A9D89ACA3CF943DC9D9@pfrenchltop> <3C1BC276576C4B358EA973E7536B2C79@pfrenchltop> X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Dec 16, 2008 at 1:08 PM, Paul French wrote: > Thanks for the reply. > > Its not what I am after though. We have AXIS2 as part of our web > application. We have web services which are defined as beans in the Spring > application context loaded as part of the web application. > > We also want our modules defined as beans from the same application context. > For example our logging module requires a datasource. This datasource is > already defined in Spring for the web application. I suppose I am trying to > avoid having to setup things twice in 2 different places. > Well that's why I mentioned the Classloader reference issue, in case you needed it, and you do. IIRC both Modules and AAR's have their own classloader. Axis2Service is used to supply the Classloader reference in the AAR case. I'm not sure how to get the equivalent in Module.init() as I see no examples in the source, or even if you did it'd work correctly with the Classloader stuff in AbstractMessageReceiver. Maybe someone like Deepal can comment further. - R