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

<bean> cannot have sub elements

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0
    • None
    • Camel Editor
    • None

    Description

      See previous ticket about try .. catch.

      I altered the route a bit a I wanted to add a log EIP after the bean inside the doTry. But the source code was renderer with <log> inside the <bean> element

        <camelContext xmlns="http://camel.apache.org/schema/spring" trace="false">
          <route id="route2">
              <from uri="activemq:foo"/>
              <doTry>
                  <bean method="myMethod" ref="myBean">
                      <log logName="myFile" message="Processing done"/>
                  </bean>
                  <doCatch>
                      <exception>java.io.IOException</exception>
                      <to uri="file:io-error"/>
                  </doCatch>
              </doTry>
          </route>
      </camelContext>
      

      And the log EIP is not visible in the outline. The correct solution should be

                  <bean method="myMethod" ref="myBean"/>
                  <log logName="myFile" message="Processing done"/>
      

      Attachments

        Activity

          People

            cibsen@redhat.com Claus Ibsen
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: