camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6130) EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry
Date Thu, 07 Mar 2013 10:52:18 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-6130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13595769#comment-13595769
] 

Claus Ibsen commented on CAMEL-6130:
------------------------------------

When using spring (spring-dm) or blueprint in the OSGi tests, then they use an OSGi CamelContext
that setup all the registry and whatnot to use the OSGi versions. So eg OSGiRegistry would
be used over JndiRegistry etc.

This happens automatic for you.

On the other hand if you create CamelContext manually you would need to use the osgi version
of it, and setup all that other stuff manually.

                
> 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.9.7, 2.10.5, 2.11.0
>
>         Attachments: CAMEL-6130-2.patch, CAMEL-6130-3.patch, CAMEL-6130-4_.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

Mime
View raw message