below are my route code-
<route id="route2">
<from uri="vm:processQ"/>
<setBody>
<simple>${header.dateRequest}</simple>
</setBody>
<bean ref="smartService" method="getJatoXmlList" id="DB_getData"/>
<split parallelProcessing="false" id="JatoList_Splitter">
<simple>body</simple>
<setHeader headerName="isPartEnd">
<simple>${property.CamelSplitComplete}</simple>
</setHeader>
<to uri="mina2:tcp://localhost:5555?textline=true&sync=false&timeout=300000"/>
</split>
</route>
When i run it i am getting following exception
org.apache.mina.core.RuntimeIoException: Failed to get the session
am i missing anything here. Since this is a session issue, but i couldn't find any session configuration for mina.
Based on the Mina documentation:
So it seems what is happening to you is that the mina producer is trying to connect with a server but it not able to. Therefore, it is failing to get the session. So after the timeout has expired (30 seconds) it throws the
RuntimeIoException
. Could you check if this is going on?For more information about the Mina Session: Reference