You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Juno <il...@naver.com> on 2017/06/07 08:49:12 UTC

How to send streaming using mybatis

Hello camel user !!

Currently, I want to save data in ActiveMQ after selecting data from
database using mybatis Component.

But the data to select is 100000000 data.


So the way I want is to put the data in the queue for 100 million.
Is there a streaming or other way?

Do you need to send the entire data to the queue via 10,000 beans?
I am a spring dsl user.

The sample source is
<route id="SAMPLE-003">
			<from
uri="mybatisMySQL:mypackage.selectData?statementType=SelectList&amp;consumer.useIterator=true&amp;maxMessagesPerPoll=5&amp;delay=5000"
/>
			<marshal>
				<csv delimiter="," quoteDisabled="true" />
			</marshal>
			<convertBodyTo type="java.lang.String" />
			<log message="==============${body}===============" />
		</route>


I do not know the exact meaning of maxMessagesPerPoll.

Thank you all for your response.



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-send-streaming-using-mybatis-tp5802252.html
Sent from the Camel - Users mailing list archive at Nabble.com.