activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Message order when use PooledConnectionFactory
Date Tue, 24 Feb 2015 13:30:40 GMT
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" <bencaogm@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message