2008/12/20 Trevv <4...@safe-mail.net>:
> 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");
>            }
>        });

In trunk we've removed alot of the custom Exchange implementations (as
it was resulting in an extra copy of messages). So no I don't think
its bug.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Reply via email to