publish

 

public void publish(Topic topic, Message message) throws JMSException;

Publishes a message to a topic for an unidentified message producer. Uses the TopicPublisher's default delivery mode, priority, and time to live.

Parameters

  • topic - the topic to publish this message to

  • message - the message to publish

Exceptions

  • JMSException - if producer fails to publish the message due to an internal error.


uj30690_