Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 90941 invoked from network); 25 Jan 2009 08:09:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2009 08:09:22 -0000 Received: (qmail 29024 invoked by uid 500); 25 Jan 2009 08:09:21 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 29009 invoked by uid 500); 25 Jan 2009 08:09:21 -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 28984 invoked by uid 99); 25 Jan 2009 08:09:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jan 2009 00:09:21 -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 willem.jiang@gmail.com designates 209.85.198.248 as permitted sender) Received: from [209.85.198.248] (HELO rv-out-0708.google.com) (209.85.198.248) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jan 2009 08:09:13 +0000 Received: by rv-out-0708.google.com with SMTP id c5so5898534rvf.56 for ; Sun, 25 Jan 2009 00:08:52 -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=r8HRr6tUfeWP4G5g+Dw/RQP5e8x1SbOzuyDqVsXDdAw=; b=ejxP0LBEUVfeJR0itXkNXbL+XVN0z2DjrHqZTXwosIT2OoD74ZGheS6JiPA1QJJuhu Qp1+tKUfVC+L8Bed7jXzg1OQS+ycohAJaZAQlbP61zHJlubT3rfz1tUnjF04JZ++J/7t wPYC8a9eZv7K7NqG+o/Nu6s05eCu3NFNbi0SU= 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=bR3hleTQLcc7Ibn/B8ZBrTFsRXjjamCHiGvyZiy89C/vu8Xlxhp5v3TYqq/m09BqQ/ x9Lu9iI98nhWGObmADciGY2FL1P9Ofiby6s9B4eDTcu1MbM4/lDSqNh5hJ3P5J63VxhP TakK8ecjXj+xB5h5aO2/uug8ibrnFu84VUlk0= Received: by 10.141.100.15 with SMTP id c15mr3160996rvm.52.1232870932640; Sun, 25 Jan 2009 00:08:52 -0800 (PST) Received: from ?192.168.0.131? ([221.223.248.194]) by mx.google.com with ESMTPS id l31sm27238236rvb.2.2009.01.25.00.08.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 25 Jan 2009 00:08:52 -0800 (PST) Message-ID: <497C1E05.7080000@gmail.com> Date: Sun, 25 Jan 2009 16:08:37 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: cxf spring configuration (camel 1.5.0) References: <21627432.post@talk.nabble.com> <497A75FC.7050901@gmail.com> <497A98ED.6070204@gmail.com> <497AF4B4.7080108@gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi William, Yes, I should set the beanId when I create the CxfSpringEndpont. I just committed a quick fix for it. Let me explain it , Camel's converter has this kind of magic that will turn a CxfSpringEndpointBean into a camel Endpoint, that's can make the configuration more easier (don't need to specify the 'cxf:bean'), and this magic can also help us to turn a Spring Integration Channel into a Spring Integration Endpoint etc. So the endpoint can be created by other not just by the component :) Willem William Tam wrote: > Let me ask a dumb question. What is the benefit of doing this? > What's wrong with using "from" URI "cxf:bean:" and let the > CxfComponent construct the endpoint? I thought endpoint was always > created by a component(?) Why we want to bypass all of that? Now, I > think the CxfEndpoint may have a null component which could cause > problem. And, CxfSpringEndpoint may have empty beanId field which is > used by the configure() method. > > > On Sat, Jan 24, 2009 at 6:00 AM, Willem Jiang wrote: >> Since there are huge changes between the camel 2.0 and camel 1.6 in >> camel-cxf module. I just commit a quick of CAMEL-1294 in Camel 2.0. >> >> Now you can define the rule like this in CAMEL 2.0-SNAPSHOT. >> > xmlns="http://activemq.apache.org/camel/schema/spring" id="camel" >> useJmx="false"> >> >> >> >> >> >> >> NOTE: we don't support use ref bean in the camel rule, since the auto >> converting work can't be done in that case. >> >> Willem >> Willem Jiang wrote: >>> I just created a JIRA[1] for it, it should be fixed in the coming up >>> CAMEL 1.6. >>> >>> [1]https://issues.apache.org/activemq/browse/CAMEL-1294 >>> >>> Willem >>> >>> Willem Jiang wrote: >>>> Hi, >>>> >>>> Current cxfEndpoint can't be directly used as a camel Endpoint. >>>> You need to change your camel context >>>> >>>> >>> xmlns="http://activemq.apache.org/camel/schema/spring" id="camel" >>>> useJmx="false"> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Willem >>>> >>>> >>>> pevgen wrote: >>>>> Hello. >>>>> >>>>> I try to configurate a cxf-endpoint in a spring config. But i got error >>>>> "org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean >>>>> named 'serviceEndpoint' must be of type [org.apache.camel.Endpoint], but was >>>>> actually of type [org.apache.camel.component.cxf.spring.CxfEndpointBean]" >>>>> >>>>> config.xml : >>>>> >>>>> >>>>> >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>> xmlns:jaxws="http://cxf.apache.org/jaxws" >>>>> xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint" >>>>> >>>>> xmlns:camel="http://activemq.apache.org/camel/schema/spring" >>>>> xsi:schemaLocation="http://www.springframework.org/schema/beans >>>>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd >>>>> http://activemq.apache.org/camel/schema/spring >>>>> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd >>>>> http://activemq.apache.org/camel/schema/cxfEndpoint >>>>> http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd >>>>> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> address="/incident" >>>>> serviceClass="ru.transsys.testcxf.TestEndpointImpl"/> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> xmlns="http://activemq.apache.org/camel/schema/spring" id="camel" >>>>> useJmx="false"> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> what do you think about it ? >>>>> >>>>> thanks, >>>>> Evgeny >>>>> >>> >> >