]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.activemq/src/main/java/org/argeo/slc/jms/JmsSlcExecutionNotifier.java
Use durable subscribers
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.activemq / src / main / java / org / argeo / slc / jms / JmsSlcExecutionNotifier.java
index 5bdefc823fca1fcca954c2a7d448d533aa10ee65..801c6fae32a730fc9204dde886ec931f8e8b9cf5 100644 (file)
@@ -16,13 +16,14 @@ public class JmsSlcExecutionNotifier implements SlcExecutionNotifier {
 
        private JmsTemplate jmsTemplate;
 
-       private Destination updateStatusDestination;
+       private Destination executionEventDestination;
+       //private Destination updateStatusDestination;
 
        public void updateStatus(SlcExecution slcExecution, String oldStatus,
                        String newStatus) {
                SlcExecutionStatusRequest req = new SlcExecutionStatusRequest(
                                slcExecution.getUuid(), newStatus);
-               jmsTemplate.convertAndSend(updateStatusDestination, req);
+               jmsTemplate.convertAndSend(executionEventDestination, req);
        }
 
        public void addSteps(SlcExecution slcExecution,
@@ -42,8 +43,14 @@ public class JmsSlcExecutionNotifier implements SlcExecutionNotifier {
                this.jmsTemplate = jmsTemplate;
        }
 
-       public void setUpdateStatusDestination(Destination updateStatusDestination) {
-               this.updateStatusDestination = updateStatusDestination;
+       public void setExecutionEventDestination(Destination executionEventDestination) {
+               this.executionEventDestination = executionEventDestination;
        }
 
+       
+       
+//     public void setUpdateStatusDestination(Destination updateStatusDestination) {
+//             this.updateStatusDestination = updateStatusDestination;
+//     }
+
 }