Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 9799 invoked from network); 20 Jan 2009 12:37:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2009 12:37:27 -0000 Received: (qmail 60536 invoked by uid 500); 20 Jan 2009 12:37:26 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 60510 invoked by uid 500); 20 Jan 2009 12:37:26 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 60499 invoked by uid 99); 20 Jan 2009 12:37:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 04:37:26 -0800 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.142.188 as permitted sender) Received: from [209.85.142.188] (HELO ti-out-0910.google.com) (209.85.142.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 12:37:17 +0000 Received: by ti-out-0910.google.com with SMTP id u5so2493187tia.10 for ; Tue, 20 Jan 2009 04:36:56 -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 :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=QBxOZlJSkP+/Uh72/6x//b6soEeD8PlV68JG/WcWzq8=; b=Dwvp1MQzP8jiLyk10PL6IS/3JW0Vbm/x1DTp10g3/jbcxN7N9H5+miJw7v11/ukQfv Cee4MsGBZsX9Tm/y10UVelxGhkT9NX7FYcC2aEz+YQ/EIT3ahlSd6SEeBpPkdi9wPctc BD9fswgunALr065v2TCbmszqomGnvkFlNldE4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=aP320Yn+gaqwTEkHW2NMl9T6AH8cxaSeIt6lQVl4CTdIXL4eNE7GNdjP90Pm4a5Kb1 Cm5/UvfO1qlDbZcq8tST6prFVbSsT8fsCoOASOPCuixjgdDwRPAdYdsYFvaWEZiZbrpP PyRDqC8DWQNZ/3Ci1/MNW7imKmbS2QiHAwWmg= Received: by 10.110.69.14 with SMTP id r14mr930235tia.49.1232455016225; Tue, 20 Jan 2009 04:36:56 -0800 (PST) Received: from ?192.168.0.131? ([123.116.30.235]) by mx.google.com with ESMTPS id d1sm456773tid.4.2009.01.20.04.36.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 20 Jan 2009 04:36:55 -0800 (PST) Message-ID: <4975C55C.1000907@gmail.com> Date: Tue, 20 Jan 2009 20:36:44 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: Definining interceptors in camel-cxf References: <49749850.50909@bull.net> <4975A68F.4080402@bull.net> In-Reply-To: <4975A68F.4080402@bull.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi You can set the interceptors into cxf bus[1], then all the CXF endpoints create by CAMEL will use them. [1]http://cwiki.apache.org/CXF20DOC/bus-configuration.html Willem S. Ali Tokmen wrote: > Hello, Pawel > > Thank you for this quick response. I now have another issue: I would > actually be interested in defining these properties globally, i.e. for > all CXF endpoints created by CAMEL. This way, people programming the > routes would only use CXF URLs and not create the CXF beans by hand. > > Thank you > > S. Ali Tokmen > savas-ali.tokmen@bull.net > > Office: +33 4 76 29 76 19 > GSM: +33 66 43 00 555 > > Bull, Architect of an Open World TM > http://www.bull.com > > > > Pawel Jasinski a �crit : >> Hi, >> >> here is a snipped from the camel-context where wss4j is defined as >> interceptor: >> >> > address="http://localhost:9001/SoapContext/SoapPort/consumer" >> wsdlURL="wsdl/consumer/consumer.wsdl" >> serviceClass="org.example.consumer.Consumer" >> endpointName="s:consumerSOAP" >> serviceName="s:consumer" >> xmlns:s="http://www.example.org/consumer/"> >> >> >> >> >> >> >> >> >> >> >> >> >> > value="META-INF/identity.properties" /> >> >> >> > value="META-INF/wss-bus.properties" /> >> > value="org.example.common.PasswordHandler" /> >> >> >> >> >> >> >> >> .... >> >> >> >> >> I hope this helps. >> -- Pawel >> >> >> On Mon, Jan 19, 2009 at 4:12 PM, S. Ali Tokmen >> wrote: >> >>> Hello >>> >>> In CXF, one can define a serioes of interceptors, inbound and >>> outbound, for >>> doing many actions. Our implementation defines some Processor >>> interceptors >>> for handling security-related tasks (namely, serializing and >>> deserializing >>> Security Contexts). >>> >>> In CXF-Spring, this is done using the jaxws:inInterceptors tag in the >>> jaxws:endpoint definition. >>> >>> Now, I would like to integrate this mechanism into CAMEL... And the >>> question >>> is: how can we define CXF interceptors in CAMEL? Programmatic definition >>> works perfectly for me -if CAMEL for example defines a default CXF >>> bus for >>> itself, getting a reference to it and adding my interceptors for all >>> camel-cxf endpoints would be great. >>> >>> Thanks >>> >>> -- >>> >>> S. Ali Tokmen >>> savas-ali.tokmen@bull.net >>> >>> Office: +33 4 76 29 76 19 >>> GSM: +33 66 43 00 555 >>> >>> Bull, Architect of an Open World TM >>> http://www.bull.com >>> >>> >>> >>> >> >> >> >> > >