# @jc:mb-publish-method Annotation

This section describes the method attributes supported for the Publish control.

Syntax

@jc:mb-publish-method

[message-metadata="message metadata"]
[message-body="message body"]

Attributes

message-metadata

XML header to include in messages published with the control method to which it is associated. Valid values include a string containing XML, or a method parameter in curly braces. For example: {parameter1}.

message-body

Valid values include a string containing text that is used as the message body in the published message, or a method parameter in curly braces. For example: {parameter2}.

Related Topics

Message Broker Publish Control