Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-719

Blueprint does not support prop namespace

XMLWordPrintable

      I have a blueprint xml that needs prop namespace in order to use property placeholder for Integer type attributes in <aggregate> element:

      <?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" 
                 xmlns:camel="http://camel.apache.org/schema/blueprint"
                 xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
                 xmlns:prop="http://camel.apache.org/schema/placeholder"
              xsi:schemaLocation="
                 http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
                 http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
                 http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
      
          <cm:property-placeholder id="myblueprint.placeholder" persistent-id="test">
              <cm:default-properties>
                  <cm:property name="aggregationTimeout" value="30000" />
              </cm:default-properties>
          </cm:property-placeholder>
      
          <camelContext xmlns="http://camel.apache.org/schema/blueprint">
              <route>
                  <from uri="direct:start"/>
                  <aggregate strategyRef="aggregatorStrategy" prop:completionTimeout="aggregationTimeout">
                      <correlationExpression>
                          <simple>header.id</simple>
                      </correlationExpression>
                      <to uri="mock:aggregated"/>
                  </aggregate>
              </route>
          </camelContext>
      
          <bean id="aggregatorStrategy" class="org.apache.camel.processor.aggregate.UseLatestAggregationStrategy"/>
      </blueprint>
      

      I followed http://camel.apache.org/using-propertyplaceholder.html section "Using property placeholders for any kind of attribute in the XML DSL" but when I deployed the blueprint to Fuse ESB 7.1, it was stuck in "GracePeriod" and waiting for the "prop" namespace handler forever:

      17:06:54,847 | INFO | l-0.0.0-thread-1 | BlueprintContainerImpl | 8 - org.apache.aries.blueprint.core - 1.0.1.fuse-71-047 | Bundle blueprint.xml is waiting for namespace handlers http://camel.apache.org/schema/placeholder

      It works in Spring DM but does not seem to work in Blueprint.

            cibsen@redhat.com Claus Ibsen
            rhn-support-qluo Joe Luo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: