Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-433

Using beans with Camel in Fuse IDE

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 2.1.0
    • None
    • None
    • None

    Description

      We should prioritize to have using beans with Fuse IDE working nicely in the GUI editor.

      This is the XML generated when creating a new camel OSGi blueprint project using the Fuse IDE wizard for the maven archetype

      <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"
             xsi:schemaLocation="
             http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
             http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
      
        <bean id="helloBean" class="foo.HelloBean">
            <property name="say" value="Hi from Camel"/>
        </bean>
      
        <camelContext id="blueprintContext" trace="false" xmlns="http://camel.apache.org/schema/blueprint">
          <route id="timerToLog">
            <from uri="timer:foo?period=5000"/>
            <setBody>
                <method ref="helloBean" method="hello"/>
            </setBody>
            <log message="The message contains ${body}"/>
          </route>
        </camelContext>
      
      </blueprint>
      

      Notice the XML in the <setBody>

      Attachments

        Activity

          People

            jastrachan_jira James Strachan (Inactive)
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: