Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D91C72FD for ; Wed, 23 Nov 2011 02:51:02 +0000 (UTC) Received: (qmail 52107 invoked by uid 500); 23 Nov 2011 02:51:02 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 52080 invoked by uid 500); 23 Nov 2011 02:51:01 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 52073 invoked by uid 99); 23 Nov 2011 02:51:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 02:51:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 02:50:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D7629987A6 for ; Wed, 23 Nov 2011 02:50:39 +0000 (UTC) Date: Wed, 23 Nov 2011 02:50:39 +0000 (UTC) From: "Daniel Gredler (Created) (JIRA)" To: issues@camel.apache.org Message-ID: <897270157.4883.1322016639883.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CAMEL-4704) Allow type converters to be specified as Spring beans MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Allow type converters to be specified as Spring beans ----------------------------------------------------- Key: CAMEL-4704 URL: https://issues.apache.org/jira/browse/CAMEL-4704 Project: Camel Issue Type: Improvement Components: camel-core Affects Versions: 2.8.2 Reporter: Daniel Gredler Priority: Minor There are many Camel configuration elements that are auto-discovered when they are configured as Spring beans (Tracer, InterceptStrategy, EventNotifier, PlatformTransactionManager, etc): http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html However, instances of TypeConverter are not auto-discovered based on the Spring configuration (there is a different auto-discovery mechanism): http://camel.apache.org/type-converter.html A related JIRA ticket (requesting custom XML syntax) was marked "won't fix": CAMEL-1685. I agree that the extra XML tag is not necessary. However, the omission of Spring bean auto-discovery seems to violate the principle of least surprise -- as a new Camel user, knowing that Camel auto-discovers Spring beans for other configuration elements, I was surprised to find that Camel didn't find my TypeConverter Spring bean. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira