Return-Path: Delivered-To: apmail-hivemind-user-archive@www.apache.org Received: (qmail 37515 invoked from network); 19 Jul 2006 15:09:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jul 2006 15:09:56 -0000 Received: (qmail 75320 invoked by uid 500); 19 Jul 2006 15:09:55 -0000 Delivered-To: apmail-hivemind-user-archive@hivemind.apache.org Received: (qmail 75308 invoked by uid 500); 19 Jul 2006 15:09:55 -0000 Mailing-List: contact user-help@hivemind.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hivemind.apache.org Delivered-To: mailing list user@hivemind.apache.org Received: (qmail 75299 invoked by uid 99); 19 Jul 2006 15:09:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2006 08:09:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of johan@kawoo.co.uk designates 217.71.122.144 as permitted sender) Received: from [217.71.122.144] (HELO ts2-144.twistspace.com) (217.71.122.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2006 08:09:54 -0700 Received: from [172.30.17.58] ([212.41.132.162]) (authenticated bits=0) by ts2-144.twistspace.com (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k6JF9VhH027805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 19 Jul 2006 17:09:33 +0200 Message-ID: <44BE4B26.6070509@kawoo.co.uk> Date: Wed, 19 Jul 2006 17:09:26 +0200 From: Johan Lindquist User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: user@hivemind.apache.org Subject: Re: MethodInterceptorFactory and multiple interceptors References: <016401c6ab42$2131a250$0f50058f@CARMANI9300> <44BE4838.2040507@kawoo.co.uk> In-Reply-To: <44BE4838.2040507@kawoo.co.uk> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Interestingly enough - if I remove the after="name", then it works ... But when I test this in the HiveMind src with the after attribute, it also works. Must be a version problem now ... Anyway, it seems to work for the moment - thanks for the help. Johan Johan Lindquist wrote: > Doesn't seem to make a difference - will continue the chase ... > > Johan > > James Carman wrote: >>> Yeah, you need to qualify names contributed in other modules. Prefix them >>> with the module id (and '.'). >>> >>> -----Original Message----- >>> From: Johan Lindquist [mailto:johan@kawoo.co.uk] >>> Sent: Wednesday, July 19, 2006 10:41 AM >>> To: user@hivemind.apache.org >>> Subject: Re: MethodInterceptorFactory and multiple interceptors >>> >>> Somewhat simplified :) >>> >>> >>> >>> >> service-id="hivemind.lib.MethodInterceptorFactory"> >>> >>> >>> >>> >>> Also tried fully qualified: >>> >>> >>> >> service-id="hivemind.lib.MethodInterceptorFactory"> >>> >>> >>> >>> >>> Same error with both. >>> >>> Johan >>> >>> James Carman wrote: >>>>> What syntax are you using in the hivemodule-webservice.xml file? >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: Johan Lindquist [mailto:johan@kawoo.co.uk] >>>>> Sent: Wednesday, July 19, 2006 10:30 AM >>>>> To: user@hivemind.apache.org >>>>> Subject: Re: MethodInterceptorFactory and multiple interceptors >>>>> >>>>> Ok, i tried the name attribute - does this require a fully qualified >>>>> name or something? >>>>> >>>>> Currently getting the following error: >>>>> >>>>> 2006-07-19 16:28:21,919 ERROR com.acme.Service1 [error] Error at >>>>> >>> file:/home/johan/forge/projects/integration/target/test-classes/META-INF/hiv >>>>> emodule-webservice.xml, >>>>> line 61, column 121: Unknown interceptor contribution dependency >>>>> 'integration.jms.jms7' (for 'integration.webservice.webservice7'). >>>>> >>>>> Cheers, >>>>> >>>>> Johan >>>>> >>>>> James Carman wrote: >>>>>>> To be honest, that "name" attribute could be documented a bit better, >>>>>>> especially with respect to this factory. >>>>>>> >>>>>>> -----Original Message----- >>>>>>> From: Johan Lindquist [mailto:johan@kawoo.co.uk] >>>>>>> Sent: Wednesday, July 19, 2006 10:19 AM >>>>>>> To: user@hivemind.apache.org >>>>>>> Subject: Re: MethodInterceptorFactory and multiple interceptors >>>>>>> >>>>>>> What happens if you contribute twice to the service point outside of the >>>>>>> service point definition? >>>>>>> >>>>>>> Johan >>>>>>> >>>>>>> James Carman wrote: >>>>>>>>> In my test case for multiple method interceptors, I use multiple like >>>>>>> this: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> interface="org.apache.hivemind.lib.impl.FortuneCookie"> >>>>>>>>> >>>>>>>> class="org.apache.hivemind.lib.impl.FortuneCookieImpl"/> >>>>>>>>> >>>>>>>> name="first"> >>>>>>>>> >>>>>>>> object="instance:org.apache.hivemind.lib.impl.SuffixMethodInterceptor" >>>>> /> >>>>>>>>> >>>>>>>>> >>>>>>>> name="second"> >>>>>>>>> >>>>>>>> object="instance:org.apache.hivemind.lib.impl.SuffixMethodInterceptor" >>>>> /> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -----Original Message----- >>>>>>>>> From: Johan Lindquist [mailto:johan@kawoo.co.uk] >>>>>>>>> Sent: Wednesday, July 19, 2006 9:22 AM >>>>>>>>> To: user@hivemind.apache.org >>>>>>>>> Subject: MethodInterceptorFactory and multiple interceptors >>>>>>>>> >>>>>>>>> Hi All, >>>>>>>>> >>>>>>>>> I have recently been using the MethodInterceptorFactory to create >>>>>>>>> interceptors based on the AOP Alliance libraries. >>>>>>>>> >>>>>>>>> Now, it is all fine until I realised that I can not have two different >>>>>>>>> interceptors (using the MethodInterceptorFactory service id) added to >>>>>>>>> the same service point. >>>>>>>>> >>>>>>>>> This would make sense if you for example referred to the logging >>>>>>>>> interceptor - two of it would be kinda dum. But since the >>>>>>>>> MethodInterceptorFactory is simply providing the plumbing for the real >>>>>>>>> implementation, 2 or more of this particular contribution should be >>> fine >>>>>>>>> right? >>>>>>>>> >>>>>>>>> Not sure if this is an easy problem to solve or not? >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> >>>>>>>>> johan >>>>>>>>> >>>>>>> -- >>>>>>> you too? >>>>> -- >>>>> you too? >>> -- >>> you too? > > -- > you too? - -- you too? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEvksm1Tv8wj7aQ34RAo2kAJ0YV0ui2UXEB+E6Q+1S2+bEyhBJpQCgkRUN YK4SlsTYjkpP6XeLxCmcvbI= =aEjr -----END PGP SIGNATURE-----