-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
jboss-fuse-6.2.1, jboss-fuse-6.3
-
None
-
%
-
-
Bundle Manifest directives blueprint.graceperiod and blueprint.timeout are ignored under Fabric. Given the following manifest:
Manifest-Version: 1.0 Bnd-LastModified: 1494705828370 Build-Jdk: 1.8.0_131 Built-By: dhawkins Bundle-Blueprint: OSGI-INF/blueprint/cbr.xml Bundle-ManifestVersion: 2 Bundle-Name: FOOTEST :: ROUTES Bundle-SymbolicName: routes;blueprint.graceperiod:=false;blueprint.tim eout:=10000 Bundle-Version: 1.0.0.SNAPSHOT Created-By: Apache Maven Bundle Plugin Import-Package: org.osgi.service.blueprint;version="[1.0.0,2.0.0)",org .apache.camel.impl;version="[2.17,3)",org.osgi.service.url;version="[ 1.0,2)" Tool: Bnd-3.2.0.201605172007
deployment on a non-fabric child container (admin:create) fails immediately with:
2017-05-13 16:10:26,320 | INFO | pool-12-thread-1 | BlueprintCamelContext | 62 - org.apache.camel.camel-core - 2.17.0.redhat-630262 | Apache Camel 2.17.0.redhat-630262 (CamelContext: foo-test-context) is starting 2017-05-13 16:10:26,322 | INFO | pool-12-thread-1 | ManagedManagementStrategy | 62 - org.apache.camel.camel-core - 2.17.0.redhat-630262 | JMX is enabled 2017-05-13 16:10:26,405 | INFO | pool-12-thread-1 | DefaultRuntimeEndpointRegistry | 62 - org.apache.camel.camel-core - 2.17.0.redhat-630262 | Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000) 2017-05-13 16:10:26,478 | INFO | pool-12-thread-1 | ReferenceRecipe | 18 - org.apache.aries.blueprint.core - 1.7.1 | Timeout expired when waiting for mandatory OSGi service reference (&(component=amq)(objectClass=org.apache.camel.spi.ComponentResolver)) 2017-05-13 16:10:26,480 | INFO | pool-12-thread-1 | BlueprintCamelContext | 62 - org.apache.camel.camel-core - 2.17.0.redhat-630262 | Apache Camel 2.17.0.redhat-630262 (CamelContext: foo-test-context) is shutting down 2017-05-13 16:10:26,485 | INFO | pool-12-thread-1 | BlueprintCamelContext | 62 - org.apache.camel.camel-core - 2.17.0.redhat-630262 | Apache Camel 2.17.0.redhat-630262 (CamelContext: foo-test-context) uptime 0.164 seconds 2017-05-13 16:10:26,485 | INFO | pool-12-thread-1 | BlueprintCamelContext | 62 - org.apache.camel.camel-core - 2.17.0.redhat-630262 | Apache Camel 2.17.0.redhat-630262 (CamelContext: foo-test-context) is shutdown in 0.004 seconds
When added to a profile and deployed to a container without camel-blueprint deployed, the bundle goes into a grace period with:
2017-05-13 16:27:20,382 | INFO | loyer-4-thread-1 | BlueprintContainerImpl | 18 - org.apache.aries.blueprint.core - 1.7.1 | Bundle routes/1.0.0.SNAPSHOT is waiting for namespace handlers [http://camel.apache.org/schema/blueprint]
and takes a very long time to timeout (over 5 minutes)