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 BA52711FBE for ; Wed, 9 Jul 2014 13:16:32 +0000 (UTC) Received: (qmail 5027 invoked by uid 500); 9 Jul 2014 13:16:32 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 4981 invoked by uid 500); 9 Jul 2014 13:16:32 -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 Delivered-To: moderator for dev@camel.apache.org Received: (qmail 18616 invoked by uid 99); 9 Jul 2014 10:56:33 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of hanusto@gmail.com does not designate 216.139.236.26 as permitted sender) Date: Wed, 9 Jul 2014 03:56:08 -0700 (PDT) From: hanusto To: dev@camel.apache.org Message-ID: <1404903368085-5753579.post@n5.nabble.com> Subject: How to avoid loading the same types of converters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, situation: Camel Context contains many and many routes and therefore many types of converters. But if we have two different converters (different package, name and so on), but with same signature of method and with same return types, unexpected behavior of Camel and TypeConverterRegistry is that only first converter that is loaded by AnnotationTypeConverterLoader (probably by order which class was loaded at first by class loader) is taken into account during dynamic inference and the others are ignored. Does anyone have any idea how to stop it? For example simply by configuration of camel context which throws exception if this collision will be discovered? Thanks, Tomas -- View this message in context: http://camel.465427.n5.nabble.com/How-to-avoid-loading-the-same-types-of-converters-tp5753579.html Sent from the Camel Development mailing list archive at Nabble.com.