camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: a MinaExchange suddenly becomes a DefaultExchange?
Date Mon, 22 Dec 2008 11:41:25 GMT
2008/12/20 Trevv <456@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/

Mime
View raw message