[ 
https://issues.apache.org/activemq/browse/CAMEL-1942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53870#action_53870
 ] 

Willem Jiang commented on CAMEL-1942:
-------------------------------------


After digging a pipeline issue this week, I realized that you can't get the 
MinaMessage if your processor is far from the MinaConsumer. You can change the 
route rule of the MinaMessageTest.java to reproduce the error.
{code}
   @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("mina:tcp://localhost:6200?textline=true&sync=false")
                    .to("log://mytest")
                    .to("mock:result");
            }
        };
    }
{code}
So I changed the code to put the IOSession into the DefaultMessage header , 
then the pipeline will pass it to the next processor.


  

> Allow access to IoSession via message
> -------------------------------------
>
>                 Key: CAMEL-1942
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1942
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mina
>    Affects Versions: 2.0.0
>            Reporter: Jеns Riеmschneidеɾ
>            Assignee: Willem Jiang
>         Attachments: mina.patch
>
>
> In 1.x it was possible to get access to the IoSession via the MinaExchange.
> In 2.0, MinaExchange is no more and therefore access to the IoSession is 
> impossible.
> Add a MinaMessage that has an accessor to the IoSession set by the 
> MinaConsumer.
> Mailing List: 
> http://www.nabble.com/IoSession-data-in-Exchange-created-by-MinaConsumer-td25150794.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to