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

<bean> cannot have sub elements

XMLWordPrintable

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

      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"/>
      

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

                Created:
                Updated:
                Resolved: