Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-1051 Rework camel editor / model
  3. FUSETOOLS-1618

Bluepint Configuration creation missing 2 attributes: autoStartup and streamCache

XMLWordPrintable

    • Sprint 2, 8.0.0 - Sprint 1, 8.0.0 - CR1

      org.jboss.tools.fuse.transformation.camel.CamelConfigBuilderIT.createBlueprintConfig()

      expecting:

      <?xml version="1.0" encoding="UTF-8"?>
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
          <camelContext id="test-defined-id" xmlns="http://camel.apache.org/schema/blueprint">
              <endpoint id="xml2json" uri="dozer:xml2json?sourceModel=abcorder.ABCOrder&amp;targetModel=xyzorderschema.XyzOrderSchema&amp;marshalId=transform-json&amp;unmarshalId=abcorder&amp;mappingFile=dozerBeanMapping.xml"/>
              <dataFormats>
                  <jaxb contextPath="abcorder" id="abcorder"/>
                  <json id="transform-json" library="Jackson"/>
              </dataFormats>
              <route>
                  <from uri="file:/tmp/inbox?fileName=abc-order.xml"/>
                  <to uri="file:/tmp/outbox?fileName=xyz-order.json"/>
              </route>
          </camelContext>
      </blueprint>
      

      but the reference is:

      <?xml version="1.0" encoding="UTF-8"?>
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
          <camelContext autoStartup="true" id="test-defined-id"
              streamCache="false" xmlns="http://camel.apache.org/schema/blueprint">
              <endpoint id="xml2json" uri="dozer:xml2json?sourceModel=abcorder.ABCOrder&amp;targetModel=xyzorderschema.XyzOrderSchema&amp;marshalId=transform-json&amp;unmarshalId=abcorder&amp;mappingFile=dozerBeanMapping.xml"/>
              <dataFormats>
                  <jaxb contextPath="abcorder" id="abcorder"/>
                  <json id="transform-json" library="Jackson"/>
              </dataFormats>
              <route>
                  <from uri="file:/tmp/inbox?fileName=abc-order.xml"/>
                  <to uri="file:/tmp/outbox?fileName=xyz-order.json"/>
              </route>
          </camelContext>
      </blueprint>
      

      So two attributes at camel Context level are missing.
      In xsd (http://camel.apache.org/schema/blueprint/camel-blueprint-2.16.1.xsd), there is no defautl value defined which can explain that (<xs:attribute name="autoStartup" type="xs:string"/>)

      Is it an intentional modification?

            Unassigned Unassigned
            apupier@redhat.com Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: