Commit 95418e62 authored by Christos Tranoris's avatar Christos Tranoris
Browse files

Transactional publish event

parent fe3946fd
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Configuration
//@RefreshScope
@@ -87,6 +88,7 @@ public class ServiceOrderApiRouteBuilderEvents extends RouteBuilder {
	/**
	 * @param n
	 */
    @Transactional
	public void publishEvent(final Notification n, final String objId) {
		n.setEventType( n.getClass().getName());
		logger.info("will send Event for type " + n.getEventType());