package za.org.grassroot.messaging.producer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Component;

/**
 * Created by aakilomar on 8/31/15.
 */
@Component
public class GenericJmsTemplateProducerManager implements GenericJmsTemplateProducerService {

    @Autowired
    JmsTemplate jmsTemplate;

    @Override
    public void sendWithNoReply(String destination, Object message) {
        jmsTemplate.convertAndSend(destination, message);
    }
}

@@ -480,16 +480,65 @@
 sage) %7B%0A
+        jmsTemplate.setDeliveryPersistent(true);%0A
         

set jms to create persisted messages