activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fluency <int...@gmail.com>
Subject Re: Non-persistent deliverymode not effect.
Date Thu, 24 Apr 2014 06:51:07 GMT
Dear artnaseef, thanks for the reply.

The line of codes that sends is very simple:invoke simpleSend message in
Action.java:
for(int i=0;i<1000;i++){
    producer.simpleSend(pojo);
}
then goes to  Producer.java :
 public void simpleSend(HashMapPojo pojo){ 
    this.jmsTemplet.setDeliveryPersistent(false); 
    this.jmsTemplet.setDeliveryMode(DeliveryMode.NON_PERSISTENT); 
    this.jmsTemplet.convertAndSend(pojo); 
    
}
I think this "convertAndSend(pojo)" is the send() call,am i right?

And i debugged both in Action.java & Producer.java as you said,the property
"deliveryMode" of jmsTemplet was always "1(NON_PERSISTENT)".




--
View this message in context: http://activemq.2283324.n4.nabble.com/Non-persistent-deliverymode-not-effect-tp4680457p4680500.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message