Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E20536C57 for ; Wed, 22 Jun 2011 03:51:45 +0000 (UTC) Received: (qmail 23364 invoked by uid 500); 22 Jun 2011 03:51:45 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 23176 invoked by uid 500); 22 Jun 2011 03:51:39 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 23165 invoked by uid 99); 22 Jun 2011 03:51:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 03:51:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-iy0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 03:51:28 +0000 Received: by iyb3 with SMTP id 3so443967iyb.32 for ; Tue, 21 Jun 2011 20:51:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=rZGLyRNd/LvzDFstOyyuqosojLG5IZMf+yV5VMF1nJI=; b=jtTvBtonXK5SySOk58uA9Q3w0PhUX/CA0yv3IpcfbNwUVlXa5AyJqC4v6GTetzLSU3 USIPxmAV7yHy+EmGQvm13OopYWOmLaWfbyl2r2/wwVDWaNLIIY19HQV7m38p5oF4hqJ2 8eAEuprIqVKmPkbgzfmSEjEpfzB8y7W1llydk= 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:content-type:content-transfer-encoding; b=pqIXkWUtE6yWXQQaG+52gMCDimRNeHiGJjslFE5qPQ51m4faYPseQwShqvKUrVb3x+ d1qcoFwPM2kW+zyp3SgLszeSKF0yfVZiO9KWmbUgnvbjPPwAXjlE9etZ6j2mtIjVMq9s 9pxfeOXhhaecN5CivJIZ2hbcZReDZnN2/RmSE= Received: by 10.42.133.71 with SMTP id g7mr210649ict.355.1308714666958; Tue, 21 Jun 2011 20:51:06 -0700 (PDT) Received: from [192.168.0.158] ([123.116.32.43]) by mx.google.com with ESMTPS id 4sm104070ibc.8.2011.06.21.20.51.03 (version=SSLv3 cipher=OTHER); Tue, 21 Jun 2011 20:51:06 -0700 (PDT) Message-ID: <4E0166A4.5020707@gmail.com> Date: Wed, 22 Jun 2011 11:51:00 +0800 From: Willem Jiang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: dev@camel.apache.org Subject: Re: CAMEL-4135/4109 and Spring and Blueprint namespace things.... References: <3540897.7dX9QsKWBo@dilbert.dankulp.com> <18180207.WMno5Q63YY@dilbert.dankulp.com> In-Reply-To: <18180207.WMno5Q63YY@dilbert.dankulp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org CxfEndpointBean is used to take the configuration of CXF ServiceFactoryBean which is used to configure CXF endpoints. In this way, the user can reuse their knowledge of CXF client or server configuration on the configuration of camel-cxf endpoint. You can configure interceptor, features, handler through the Spring configuration, but you can't do it through the camel-cxf URI in current camel-cxf component. I agree CxfEndpointBean has a strong dependency on the Spring and we should avoid it. Maybe we could do some refactoring and enhancement in the feature to support the configuration of interceptor and features from URI. On 6/22/11 6:18 AM, Daniel Kulp wrote: > On Tuesday, June 21, 2011 3:47:48 PM Johan Edstrom wrote: >> At the time I wrote that, >> I was trying to get around what was happening on the >> Spring side, and cut it down as much as possible. >> >> I am pretty sure that I had sane reasoning at some point :) ... > > Looking into it a little bit more, I really think the blueprint way of doing > it is much closer to "correct". CxfEndpointBean implements all the Spring > interfaces. Thus, it really wouldn't be appropriate for the blueprint stuff > to create that. What's worse, since CxfComponent does an "instanceof > CxfEndpointBean", that means CxfComponent REQUIRES the spring jars on the > classpath. Things definitely need some cleanup around all of this. :-( > > Still digging...... > > Dan > > >> >> /je >> >> On Jun 21, 2011, at 3:34 PM, Daniel Kulp wrote: >>> Just a quick question... >>> >>> I'm working on some CXF blueprint stuff with Camel and ran into a little >>> issue that I want to discuss real quick. There is a slight difference >>> between how blueprint and spring parse the namespace. I just want to >>> see if they should be unified a bit. >>> >>> Basically, the Spring namespace handler parses into a "CxfEndpointBean" >>> (well a subclass of) and then the CxfComponent then will look that up >>> and convert that into a CxfEndpoint. >>> >>> Blueprint, on the other hand, parses directly to a CxfEndpoint. I had >>> to make some slight modification to the CxfComponent to take that into >>> account. The patch I stuck on CAMEL-4135 handles that. However, >>> I'm not sure that's the best route. Do you think the blueprint stuff >>> should parse into a CxfEndpointBean as well? I'm still kind of >>> digging into the camel-cxf stuff and haven't quite gotten a handle >>> around the differences. -- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang