camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Davidson (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-9570) Blueprint Proxies are not used when injected into Java RouteBuilders
Date Thu, 18 Feb 2016 20:40:18 GMT

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

Richard Davidson edited comment on CAMEL-9570 at 2/18/16 8:39 PM:
------------------------------------------------------------------

Sorry for the slow response. I have been away for a few days. No I was adding the route builder
using the Blueprint DSL so I don't think it is related specifically to annotations or package
scanning:

Adding the route builder like this causes the issue:
{code}
<camelContext id="very-simple-context"
		xmlns="http://camel.apache.org/schema/blueprint">
<routeBuilder ref="very-simple-route-builder" />    
	</camelContext>
{code}







was (Author: rdavidson):
Sorry for the slow response. I have been away for a few days. No I was adding the route builder
using the Blueprint DSL so I don't think it is related specifically to annotations or package
scanning:

So adding the route builder like this causes the issue:
{code}
<camelContext id="very-simple-context"
		xmlns="http://camel.apache.org/schema/blueprint">
<routeBuilder ref="very-simple-route-builder" />    
	</camelContext>
{code}






> Blueprint Proxies are not used when injected into Java RouteBuilders
> --------------------------------------------------------------------
>
>                 Key: CAMEL-9570
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9570
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-blueprint, camel-core
>    Affects Versions: 2.16.2
>            Reporter: Quinn Stevenson
>            Assignee: Christian Schneider
>
> Basic Conditions:
> - Java interface used for OSGi Services
> - Implementation of the Java interface registered as a OSGi service.  Note that the package
containing implementation is NOT exported
> - A Java RouteBuilder that uses the Java interface via bean(...) DSL calls, with a setter
for the bean implementing the interface
> - Wire everything together with Blueprint - create a <reference ...> for the service,
a <bean ...> for the RouteBuilder and inject the service reference, and use the RouteBuilder
in a CamelContext.
> After all this is deployed, stop the bundle implementing the service.  A ServiceUnavailableException
should be thrown after a timeout, but the object that was injected into the RouteBuilder process
the request - so the Blueprint Proxy is not used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message