Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10009

Using <to> with id and ref fails

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      If you use spring and then refer to an endpoint

              <endpoint id="csv2json" uri="dozer:csv2json?sourceModel=org.acme.Customer&amp;targetModel=org.globex.Account&amp;marshalId=json&amp;unmarshalId=csv&amp;mappingFile=transformation.xml"/>
      

      And then in a route has

                      <to id="_to2" ref="csv2json"/>
      

      Then you get this spring error

      Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'ref' of bean class [org.apache.camel.spring.CamelEndpointFactoryBean]: Bean property 'ref' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: