You design a subscription to a Message Broker channel in one of two ways in your business processes: you create an instance of a Message Broker Subscription control and design the subscription using it, or for the special case of a process that is started as a result of a subscription to a Message Broker channel, you design the subscription on the process' Start node.
To learn how to design the Start-node subscriptions, see Subscription Start (Asynchronous) and Subscription Start (Synchronous).
This section describes how to create a Message Broker Subscription control in your project, then bind a method from the control to a node in your business process.
Note: In WebLogic Integration, subscriptions to Message Broker channels defined at a Start node are referred to as static subscriptions, and subscriptions defined using a Message Broker Subscription control are referred to as dynamic subscriptions. See "Note about Static and Dynamic Subscriptions" in @jpd:mb-static-subscription Annotation.
To Subscribe to a Message Broker Channel Using a Subscription Control
The Insert Control dialog box is displayed.
Note: The message-type field is populated with the data type of the message that is published to the selected channel. To learn how the channel is defined, see Understanding the Message Broker Channels in Your Tutorial Application.
The Insert Control dialog box closes and the new JCX file is created and displayed in the Application tab. The instance of the Message Broker Subscription control you created is displayed in the Data Palette.
void subscribe()
A Control Send node is created. By default, the node is named subscribe. Note that the
indicates that the specifications on this node are complete. No further work is required to design this node, unless you selected to use a filter. If so, proceed to the To Specify a Filter Value for Your Channel section.
Note: When you create your control, a callback method is created for you (void OnMessage(message)). You can drag-and-drop this method from the Data Palette onto your business process. This creates a Control Receive node that you can configure to handle your callback. For an example, see Step 14: Designing a Message Path for Your Business Process in the Tutorial: Building Your First Business Process.
To Specify a Filter Value for Your Channel
If you selected the This subscription will be filtered check box in step 5. in the above procedure, you must enter a filter value for your subscribeWithFilterValue(value) before your filter will work properly.
Note: If the Application tab is not visible, select View —> Application.
The JCX file is displayed in Design View.
The Property Text Editor window opens.
The Property Text Editor closes and the valued you entered will be used as the filter value at run time.
How Do I: Create Message Broker Channels?
How Do I: Publish to Message Broker Channels?
Message Broker Subscription Control
Subscription Start (Asynchronous)
Subscription Start (Synchronous)
@jpd:mb-static-subscription Annotation
![]() |
![]() |