# @jc:mb-subscription-callback Annotation

This section describes the callback attributes supported for the Subscription control.

Syntax

@jc:mb-subscription-callback

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

Attributes

message-metadata

The name of a parameter in the callback method that receives the metadata from the message that triggered the subscription. This parameter can be of an XmlObject or typed XML.

message-body

The name of a parameter in the callback method that receives the body from the message that triggered the subscription. This parameter must be of type XmlObject (or a typed XBean), String, RawData, or a non-XML MFL class (a subclass of MflObject).

Related Topics

Message Broker Subscription Control