You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by liny <in...@gmail.com> on 2012/01/13 11:18:46 UTC
Batch message sending with JmsTransactionManager of Spring?
Hi,
I am trying to do transaction with Spring.
Below is my spring configuration:
I can send msg with jmsTemplate without transaction, but I don't know how to
start a transaction and commit in my program.
Can someone show me sample how to do batch message sending with
JmsTransactionManager or other ways?
Thank you.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Batch-message-sending-with-JmsTransactionManager-of-Spring-tp4291842p4291842.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Batch message sending with JmsTransactionManager of Spring?
Posted by johnbing <bi...@gmail.com>.
I am beginner in ActiveMQ, I want to use transactions within spring file, But
as I saw in org.springframework.jms.core.JmsTemplate
It commit transaction after each message is sent. I want to commit after a
batch of messages. How should I configure this ?
--
View this message in context: http://activemq.2283324.n4.nabble.com/Batch-message-sending-with-JmsTransactionManager-of-Spring-tp4291842p4674826.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Batch message sending with JmsTransactionManager of Spring?
Posted by Gary Tully <ga...@gmail.com>.
afaik, spring jmstemplate would need a jta transaction to allow a
batch of sends in a single transaction, but this is really a question
for the spring jms forums.
A plain jms message producer in a transacted session is the simplest
way to achieve what you want.
On 27 November 2013 08:50, Sophia Wright <so...@gmail.com> wrote:
> Ping !!
> Waiting for someone to respond...
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Batch-message-sending-with-JmsTransactionManager-of-Spring-tp4291842p4674863.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
http://redhat.com
http://blog.garytully.com
Re: Batch message sending with JmsTransactionManager of Spring?
Posted by Sophia Wright <so...@gmail.com>.
Ping !!
Waiting for someone to respond...
--
View this message in context: http://activemq.2283324.n4.nabble.com/Batch-message-sending-with-JmsTransactionManager-of-Spring-tp4291842p4674863.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Batch message sending with JmsTransactionManager of Spring?
Posted by Sophia Wright <so...@gmail.com>.
I also want to know.. using spring how can i send a batch of messages and
commit after it while using transaction ?
--
View this message in context: http://activemq.2283324.n4.nabble.com/Batch-message-sending-with-JmsTransactionManager-of-Spring-tp4291842p4674824.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.