2 Replies Latest reply on Jan 27, 2011 6:59 AM by allanon76

    multicast + choice & otherwise

    allanon76

      Hi,

       

      I would like to use the when/otherwise block with inside a multicast,

      but it seems not possible. Is there any other solution?

       

      from(uri)

           .choice()

                .when(new doCheck())

                       .multicast()

                          .to(uri1,uri2,uri3)

                .otherwise()     <---- not possible even adding end() after .to()

                        .multicast()+

                     .to(uri4,uri5);

       

       

       

      Thanks,

       

      Michele

       

      Edited by: allanon76 on Jan 25, 2011 1:08 PM

       

      Edited by: allanon76 on Jan 25, 2011 1:08 PM