February 2013
Intermediate to advanced
656 pages
21h 26m
English
The NotificationService provides a single method for publishing DomainEvent instances over a messaging infrastructure. Here is the service method:
public class NotificationService { ... @Transactional public void publishNotifications() { PublishedMessageTracker publishedMessageTracker = this.publishedMessageTracker(); List<Notification> notifications = this.listUnpublishedNotifications( publishedMessageTracker .mostRecentPublishedMessageId()); MessageProducer messageProducer = this.messageProducer(); try { for (Notification notification : notifications) ...
Read now
Unlock full access