com.silverpeas.notification.jms
Class JMSPublishingService

java.lang.Object
  extended by com.silverpeas.notification.jms.JMSPublishingService
All Implemented Interfaces:
NotificationPublisher

@Named(value="notificationPublisher")
public class JMSPublishingService
extends Object
implements NotificationPublisher

Service for publishing an event by using a JMS system. This service is managed by the IoC container under the name 'notificationPublisher' as required by the Notification API. The JMS system is injected as a dependency by the IoC container.


Constructor Summary
JMSPublishingService()
           
 
Method Summary
 void publish(SilverpeasNotification notification, NotificationTopic onTopic)
          Publishes a notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSPublishingService

public JMSPublishingService()
Method Detail

publish

public void publish(SilverpeasNotification notification,
                    NotificationTopic onTopic)
Description copied from interface: NotificationPublisher
Publishes a notification. All subscribers for a such announcement will recieve it. If the event publication failed, then a PublishingException runtime exception will be thrown.

Specified by:
publish in interface NotificationPublisher
Parameters:
notification - the notification to publish.
onTopic - the topic on which the notification should be published.


Copyright © 2016 Silverpeas. All Rights Reserved.