onInit()
Subclasses may implement this for initialization logic.
void
setDefaultNotificationType(java.lang.String defaultNotificationType)
Specify a dot-delimited String representing the Notification type to
use by default when no explicit Notification mapper
has been configured.
public NotificationPublishingMessageHandler(javax.management.ObjectName objectName)
NotificationPublishingMessageHandler
public NotificationPublishingMessageHandler(java.lang.String objectName)
Method Detail
setNotificationMapper
public void setNotificationMapper(OutboundMessageMapper<javax.management.Notification> notificationMapper)
Set a mapper for creating Notifications from a Message. If not provided,
a default implementation will be used such that String-typed payloads will be
passed as the 'message' of the Notification and all other payload types
will be passed as the 'userData' of the Notification.
setDefaultNotificationType
public void setDefaultNotificationType(java.lang.String defaultNotificationType)
Specify a dot-delimited String representing the Notification type to
use by default when no explicit Notification mapper
has been configured. If not provided, then a notification type header will
be required for each message being mapped into a Notification.
onInit
public final void onInit()
throws java.lang.Exception