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 2A942D9D1 for ; Thu, 7 Mar 2013 19:02:13 +0000 (UTC) Received: (qmail 88716 invoked by uid 500); 7 Mar 2013 19:02:13 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 88691 invoked by uid 500); 7 Mar 2013 19:02:13 -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 88683 invoked by uid 99); 7 Mar 2013 19:02:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 19:02:13 +0000 Date: Thu, 7 Mar 2013 19:02:12 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-6130) EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596191#comment-13596191 ] Claus Ibsen commented on CAMEL-6130: ------------------------------------ Thanks applied patch #5 to trunk and 2.10 branch > EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry > ------------------------------------------------------------------------------ > > Key: CAMEL-6130 > URL: https://issues.apache.org/jira/browse/CAMEL-6130 > Project: Camel > Issue Type: Bug > Components: osgi > Affects Versions: 2.9.5, 2.10.4 > Reporter: Aaron Whiteside > Assignee: Claus Ibsen > Priority: Critical > Fix For: 2.10.5, 2.11.0 > > Attachments: CAMEL-6130-2.patch, CAMEL-6130-3.patch, CAMEL-6130-4_.patch, CAMEL-6130-5.patch, CAMEL-6130.patch > > > EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry > setReferenceProperties() is hard-coded to lookup services of type Object.class. > It should use reflection to determine the type that the setter method accepts and then use that type to lookup the reference in the service registry. > At the moment this issue is stopping #bean references in Endpoints from being resolved when using an OSGiServiceRegistry, in OSGi you need to know the class of the service you want before hand. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira