com.ibm.websphere.webmsg.publisher
Interface Publisher

All Known Implementing Classes:
JmsPublisher

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
 void close()
          Close publisher, includes shutting down any connections, etc.
 void initialize(PublisherContext context)
          Initialize the publisher.
 void publish(WebMessage message)
          Publish given message to interested parties.
 

Method Detail

close

void close()
           throws PublisherException
Close publisher, includes shutting down any connections, etc.

Throws:
PublisherException - If error closing publisher.

initialize

void initialize(PublisherContext context)
                throws PublisherException
Initialize the publisher.

Parameters:
context - - Context in which the publisher is running.
Throws:
PublisherException - - if there is initialization error.

publish

void publish(WebMessage message)
             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.