Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D8D56F65 for ; Mon, 30 May 2011 09:56:47 +0000 (UTC) Received: (qmail 1399 invoked by uid 500); 30 May 2011 09:56:46 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 1341 invoked by uid 500); 30 May 2011 09:56:46 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 1333 invoked by uid 99); 30 May 2011 09:56:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2011 09:56:46 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of cschneider@talend.com does not designate 83.246.65.53 as permitted sender) Received: from [83.246.65.53] (HELO relay03-haj2.antispameurope.com) (83.246.65.53) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2011 09:56:39 +0000 Received: from mail.sfp-net.com (smtp.sfp-net.com [83.220.139.247]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by relay03-haj2.antispameurope.com (ASE-Secure-MTA) with ESMTP id 550B663C1A0 for ; Mon, 30 May 2011 11:56:16 +0200 (CEST) Received: from EXMBX03.SFP-Net.skyfillers.local ([fe80:0000:0000:0000:7de4:2e2d:43.130.96.44]) by EXHUB02.SFP-Net.skyfillers.local ([172.16.12.23]) with mapi; Mon, 30 May 2011 11:56:16 +0200 From: Christian Schneider To: "users@cxf.apache.org" Date: Mon, 30 May 2011 11:56:41 +0200 Subject: AW: How can I reduce the usage of my interceptors Thread-Topic: How can I reduce the usage of my interceptors Thread-Index: AcwerihNfVQ5xE6uTByMpb115/yFTgAAaQCA Message-ID: <3C6BC1C7F9166C4399B2409DF0EFE41B083FD024@EXMBX03.SFP-Net.skyfillers.local> References: <1306748631440-4438857.post@n5.nabble.com> In-Reply-To: <1306748631440-4438857.post@n5.nabble.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org You can define the interceptors on the jaxws:endpoint instead of the cxf bu= s. That should do the trick. Christian -----Urspr=FCngliche Nachricht----- Von: Rainer Gall [mailto:rainer.gall@toyota-fs.com]=20 Gesendet: Montag, 30. Mai 2011 11:44 An: users@cxf.apache.org Betreff: How can I reduce the usage of my interceptors We have been developing several webservices running on the same server. Now we have the need to do some more ore less complex logging tasks in an i= nterceptor.=20 To avoid, that the interceptor is called whenever any of our webservices is= called, it would be helpful to reduce the usage of this interceptor to a s= pecific endpoint. The following configuration file is a shortened example. We would like to use MySpecialInterceptor only within the VapRequestService= -endpoint. =09 =09 =09 =09 =09 Actually I check this within the handleMessage-Method by testing the BASE_P= ATH public void handleMessage(Message message) throws Fault { String lcPath =3D (String) message.get(Message.BASE_PATH); // handelt es sich um einen vaprequestservice if (lcPath.indexOf("vaprequestservice") > -1) { Is there any way to reduce the usage of MySpecialInterceptor within the con= figuration-file? Regards, Rainer -- View this message in context: http://cxf.547215.n5.nabble.com/How-can-I-red= uce-the-usage-of-my-interceptors-tp4438857p4438857.html Sent from the cxf-user mailing list archive at Nabble.com.