publish

 

public void publish(Topic topic, Message message, int deliveryMode, 
                    int priority, long timeToLive) 
              throws JMSException;

Publishes a message to a topic for an unidentified message producer, specifying delivery mode, priority and time to live.

Parameters

  • topic - the topic to publish this message to

  • message - the message to publish

  • deliveryMode - the delivery mode to use

  • priority - the priority for this message

  • timeToLive - the message's lifetime (in milliseconds)

Exceptions

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


uj30700_