Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2893

<router> should have <bean> & <script> tags within <chain>

    XMLWordPrintable

    Details

      Description

      Now it isn't posible to have similar config:

      <chain>
          <router method="route">
      	<beans:bean class="com.my.proj.SomeRouter"/>
          </router>
      </chain>
      
      <chain>
          <router>
             <mapping value="true" channel="startApplicationChannel"/>
             <mapping value="false" channel="stopApplicationChannel"/>
             <groovy:script><![CDATA[
      	(payload.DB_VERSION =~ /\d+.\d+.\d+/)[0] == (payload.APP_VERSION =~ /\d+.\d+.\d+/)[0]
      		]]>
      	</groovy:script>
          </router>
      </chain>
      

      Of course: as a workaround to place <router> outside of <chain>.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            abilan Artem Bilan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25d
                0.25d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.25d
                0.25d