If you absolutely have to have messages get sent in a well-defined order, you'd use a single thread instead of many to do your sends, or you'd implement your own synchronization around anywhere your threads called send(). On Feb 2, 2015 12:03 PM, "bencaogm" <benca...@foxmail.com> wrote:
> Hello! > > I use spring's JmsTemplate to send queue messages (not pesisted) and use > PooledConnectionFactory to hold 10 connections with Active MQ. > If I call JmsTemplate.send method in multiple thread to the same > destination, can the consumer get messages in the same order the message > sned by JmsTemplate? If not , how can I do to approach it? > > AcgiveMQ Jar version: 5.4.3 > Platform: Linux > Tocmat: 7.0 > Jdk 6.0 > message type: Non persisted queue message. > ActiveMQ server version: ActiveMQ 5.10.0 > > Thanks! > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Message-order-when-use-PooledConnectionFactory-tp4690796.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >