com.ibm.websphere.webmsg.publisher

Interface Publisher

All known implementing classes:
JmsPublisher

  1. public interface Publisher
Interface defining how events are published to interested parties. Implementations are responsible for taking an event and routing it to interested parties.

Method Summary

Modifier and Type Method and Description
  1. void
close()
Close publisher, includes shutting down any connections, etc.
  1. void
initialize(PublisherContext context)
Initialize the publisher.
  1. void
publish(WebMessage message)
Publish given message to interested parties.

Method Detail

close

  1. void close()
  2. throws PublisherException
Close publisher, includes shutting down any connections, etc.
Throws:
PublisherException - If error closing publisher.

initialize

  1. void initialize(PublisherContext context)
  2. throws PublisherException
Initialize the publisher.
Parameters:
context - - Context in which the publisher is running.
Throws:
PublisherException - - if there is initialization error.

publish

  1. void publish(WebMessage message)
  2. throws PublisherException
Publish given message to interested parties.
Parameters:
message - Message to be published.
Throws:
PublisherException - If there is any error with publishing the exception.