1 2 Previous Next 16 Replies Latest reply on Apr 25, 2017 10:53 AM by Oscar Cadena


    Oscar Cadena Newbie

      Hi guys. In this moment i'm making a test concept with CAMEL and FUSE 6.3.


      im working with the content enrich pattern but i have four days with the same problem.


      this is my code.


      <beans xmlns="http://www.springframework.org/schema/beans"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">

          <bean class="legis.org.ProcessData" id="processDataProcessor"/>

          <bean class="legis.org.ExampleAggregationStrategy" id="aggregationStrategy"/>

          <bean  class="org.apache.camel.processor.aggregate.GroupedExchangeAggregationStrategy" id="group"/>

          <camelContext id="_camelContext1" xmlns="http://camel.apache.org/schema/spring">

              <route id="_route5">

                  <from id="_from1" uri="file:work/cbr/input"/>

                  <to id="_to1" uri="log:output"/>

                  <to id="_to2" uri="direct:Process"/>


              <route id="_route1">

                  <from id="_from2" uri="direct:Process"/>


                <enrich strategyRef="aggregationStrategy">




                  <to id="_to3" uri="direct:result"/>


              <route id="_route2">

                  <from id="_from3" uri="direct:resource"/>

                  <process id="reportProcess" ref="processDataProcessor"/>

                  <to id="_to4" uri="log:output"/>


              <route id="_route3">

                  <from id="_from4" uri="direct:result"/>

                  <to id="_to5" uri="log:output"/>

                  <to id="_to6" uri="file:work/cbr/output"/>





      in the bold part im getting an error telling me that constant is not allowed. so i did this.


      <enrich uri="direct:resource" strategyRef="aggregationStrategy"/>


      With this the JBOSS tell me a warning "expression is a mandatory field" but i publish anyway.

      When i look for the logs i'm watching an error telling me "Attribute 'uri' is not allowed to appear in element 'enrich'."


      So i dont know what im doing wrong. I have used camel 2.18 and camel 2.5 versions but with any luck.


      Please any help with this.



        1 2 Previous Next