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

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Sub Publish ( _
	topic As ITopic, _
	message As IMessage _
)
C#
void Publish(
	ITopic topic,
	IMessage message
)
Visual C++
void Publish(
	ITopic^ topic, 
	IMessage^ message
)

Parameters

topic
Type: Kaazing.JMS..::..ITopic
the topic to publish this message to
message
Type: Kaazing.JMS..::..IMessage
the message to publish

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to publish the message due to some internal error.
Kaazing.JMS..::..MessageFormatExceptionif an invalid message is specified.
Kaazing.JMS..::..InvalidDestinationExceptionif a client uses this method with an invalid topic.

See Also