camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: "cxf" name conflict in the spring context
Date Tue, 12 Feb 2008 12:24:53 GMT
On 12/02/2008, Willem Jiang <willem.jiang@gmail.com> wrote:
> Hi James,
>
> I agree to look up the component with URI schema and component type to
> avoid getting the wrong bean instance from the Spring Application context.
>
>  I went through the code and stack trace in the "Camel CXF Spring Tomcat
> configuration" again, the exception is thrown from checking the bean's
> type is not the instance of the Component.
>
> So the fixing could be more easier, if the bean's type is not match with
> the component that we want , we just keep on searching the component
> factory with the URI schema and do not throw the IllegalArgumentException.

Good idea

> In this way , we could still give a chance to user to override the
> component schema definition in spring context.

Agreed
-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message