activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kafka399 <kafka...@gmail.com>
Subject Re: Duplicated messages
Date Mon, 07 Mar 2011 10:29:10 GMT
I had used Queue unintentionally until I found, that my configuration is
wrong, but the result was the same and the messages were duplicated. Anyway,
the topic is non-durable, so I don't see harm in it.


public void sende(Integer tickerId, Integer field, Integer size, Long
timestamp)
    {
    	jmsTemplate.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
    	
    	Map map = new HashMap();
    	map.put("tickerId", tickerId);
    	map.put("field", field);
    	map.put("size", size);
    	map.put("timestamp", timestamp);
    	jmsTemplate.convertAndSend("TopicName", map);
    	
    }


--
View this message in context: http://activemq.2283324.n4.nabble.com/Duplicated-messages-tp3335982p3338663.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message