You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2011/02/24 11:26:38 UTC
[jira] Resolved: (CAMEL-3620) Blueprint container goes
'GracePeriod' if component is defined in the same XML file
[ https://issues.apache.org/jira/browse/CAMEL-3620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet resolved CAMEL-3620.
------------------------------------
Resolution: Fixed
Fixed by switching the service reference to optional if there's a bean defined with the same name.
> Blueprint container goes 'GracePeriod' if component is defined in the same XML file
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-3620
> URL: https://issues.apache.org/jira/browse/CAMEL-3620
> Project: Camel
> Issue Type: Bug
> Components: camel-blueprint
> Affects Versions: 2.6.0
> Reporter: Gert Vanthienen
> Assignee: Guillaume Nodet
> Fix For: 2.7.0
>
>
> When a Blueprint file contains both a route and a component bean definition, the Camel routes get started correct but the Blueprint container will go to status 'GracePeriod'.
> An example:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint
> xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="
> http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
> <camelContext xmlns="http://camel.apache.org/schema/blueprint">
> <route>
> <from uri="file:activemq/input"/>
> <to uri="file:activemq/output"/>
> <setBody>
> <simple>
> FileMovedEvent(file: ${file:name}, timestamp: ${date:now:hh:MM:ss.SSS})
> </simple>
> </setBody>
> <to uri="amq://events" />
> </route>
> </camelContext>
> <bean id="amq" class="org.apache.activemq.camel.component.ActiveMQComponent">
> <property name="brokerURL" value="vm://default?create=false&waitForStart=10000"/>
> </bean>
> </blueprint>
> {code}
> After the 5 minute time-out period, the routes are stopped and we end up with this message in the log file.
> {noformat}
> Unable to start blueprint container for bundle activemq2.xml due to unresolved dependencies
> [(&(component=log)(objectClass=org.apache.camel.spi.ComponentResolver)),
> (&(component=amq)(objectClass=org.apache.camel.spi.ComponentResolver))]
> {noformat}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira