You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by raxlee <80...@sohu.com> on 2006/09/03 11:21:01 UTC

hurry!why my customer receive the same message many times

hi,

   i use activemq for messageque,recently i found that the cunsumer can
receive the same message many times for a peried time.

  why it happened

   the message i received is

  ActiveMQTextMessage {commandId = 29405, responseRequired = false,
messageId = ID:ibm-9d2a79eb7cc-1989-1157269673140-1:1:7351:1:1,
originalDestination = null, originalTransactionId = null, producerId =
ID:ibm-9d2a79eb7cc-1989-1157269673140-1:1:7351:1, destination =
queue://TEST.FOO, transactionId = null, expiration = 0, timestamp =
1157269455978, arrival = 0, correlationId = null, replyTo = null, persistent
= false, type = null, priority = 4, groupID = null, groupSequence = 0,
targetConsumerId = null, compressed = false, userID = null, content =
org.apache.activeio.packet.ByteSequence@12d15a9, marshalledProperties =
null, dataStructure = null, redeliveryCounter = 34, size = 0, properties =
null, readOnlyProperties = true, readOnlyBody = true, text = null}



    is anyone can tell me why the same message can by received more than
once

   and how can i avoid the problem


   many thanks

  

   
  
-- 
View this message in context: http://www.nabble.com/hurry%21why-my-customer-receive-the-same-message-many-times-tf2210057.html#a6120745
Sent from the ActiveMQ - User forum at Nabble.com.


Re: hurry!why my customer receive the same message many times

Posted by James Strachan <ja...@gmail.com>.
What version are you using? What does your client do? Generally the
only reason for messages being redelivered on a queue is either your
client does not acknowledge the message or a transaction rolls back

On 9/3/06, raxlee <80...@sohu.com> wrote:
>
> hi,
>
>    i use activemq for messageque,recently i found that the cunsumer can
> receive the same message many times for a peried time.
>
>   why it happened
>
>    the message i received is
>
>   ActiveMQTextMessage {commandId = 29405, responseRequired = false,
> messageId = ID:ibm-9d2a79eb7cc-1989-1157269673140-1:1:7351:1:1,
> originalDestination = null, originalTransactionId = null, producerId =
> ID:ibm-9d2a79eb7cc-1989-1157269673140-1:1:7351:1, destination =
> queue://TEST.FOO, transactionId = null, expiration = 0, timestamp =
> 1157269455978, arrival = 0, correlationId = null, replyTo = null, persistent
> = false, type = null, priority = 4, groupID = null, groupSequence = 0,
> targetConsumerId = null, compressed = false, userID = null, content =
> org.apache.activeio.packet.ByteSequence@12d15a9, marshalledProperties =
> null, dataStructure = null, redeliveryCounter = 34, size = 0, properties =
> null, readOnlyProperties = true, readOnlyBody = true, text = null}
>
>
>
>     is anyone can tell me why the same message can by received more than
> once
>
>    and how can i avoid the problem
>
>
>    many thanks
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/hurry%21why-my-customer-receive-the-same-message-many-times-tf2210057.html#a6120745
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/