The ITopicPublisher type exposes the following members.

Methods

  NameDescription
Public methodClose
Closes the message producer.

Since a provider may allocate some resources on behalf of a MessageProducer outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.

(Inherited from IMessageProducer.)
Public methodPublish(IMessage)
Publishes a message to the topic. Uses the TopicPublisher's default delivery mode, priority, and time to live.
Public methodPublish(ITopic, IMessage)
Publishes a message to a topic for an unidentified message producer. Uses the TopicPublisher's default delivery mode, priority, and time to live.
Public methodPublish(IMessage, Int32, Int32, Int64)
Publishes a message to the topic, specifying delivery mode, priority, and time to live.
Public methodPublish(ITopic, IMessage, Int32, Int32, Int64)
Publishes a message to a topic for an unidentified message producer, specifying delivery mode, priority and time to live.
Public methodSend(IMessage)
Sends a message using the MessageProducer's default delivery mode, priority, and time to live.
(Inherited from IMessageProducer.)
Public methodSend(IDestination, IMessage)
Sends a message to a destination for an unidentified message producer. Uses the MessageProducer's default delivery mode, priority, and time to live.

Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent.

(Inherited from IMessageProducer.)
Public methodSend(IMessage, Int32, Int32, Int64)
Sends a message to the destination, specifying delivery mode, priority, and time to live.
(Inherited from IMessageProducer.)
Public methodSend(IDestination, IMessage, Int32, Int32, Int64)
Sends a message to a destination for an unidentified message producer, specifying delivery mode, priority and time to live.

Typically, a message producer is assigned a destination at creation time; however, the JMS API also supports unidentified message producers, which require that the destination be supplied every time a message is sent.

(Inherited from IMessageProducer.)

See Also