In the route below, "Hello from processor #1" is logged, but instead
of "Hello from processor #2" there is a ClassCastException saying that
DefaultExchange cannot be cast to MinaExchange.

Is this normal, or a bug?

    import org.apache.mina.util.SessionLog;

    ...

    from("mina:tcp://[::]:8888?textline=true")
        .process(new Processor() {
            public void process(Exchange e) {
                SessionLog.info(((MinaExchange) e).getSession(),
                                "Hello from processor #1");
            }
        })
        .process(new Processor() {
            public void process(Exchange e) {
                SessionLog.info(((MinaExchange) e).getSession(),
                                "Hello from processor #2");
            }
        });
-- 
View this message in context: 
http://www.nabble.com/a-MinaExchange-suddenly-becomes-a-DefaultExchange--tp21100904s22882p21100904.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to