February 2002
Beginner to intermediate
544 pages
10h 23m
English
The TopicPublisher interface inherits the fields and the methods of the interface javax.jms.MessageProducer. The following methods are defined in the interface javax.jms.TopicPublisher.
public Topic getTopic()
Gets the topic associated with this TopicPublisher.
RETURNS:
this publisher's topic
THROWS:
JMSException if the JMS provider fails to get the topic for this TopicPublisher due to some internal error
public void publish(Message message)
Publishes a message to the topic. Uses the TopicPublisher's default delivery mode, priority, and time to live.
PARAMETERS:
message the message to publish THROWS:
JMSException if the JMS provider fails to publish the message due to some internal error MessageFormatException ...
Read now
Unlock full access