How Do I: Publish to Message Broker Channels?

You must first create a Message Broker Publish control in your project, then bind a method from the control to a node in your business process. To do so, complete the following steps:

  1. In the Application tab, double-click the applicable business process to ensure that it is displayed in the Design View.
  2. On the Data Palette Controls tab, click Add —> Integration Controls —> MB Publish. The Insert Control dialog box is displayed.
  3. Note: If the Data Palette is not visible in WebLogic Workshop, click View —> Windows —> Data Palette from the menu bar.

  4. In Step 1, enter the variable name for this control.
  5. In Step 2, do one of the following:
    1. To use an existing MB Publish control, select Use a MB Publish control already defined by a JCX file, then enter the name of a JCX file or use Browse to select the JCX file.
    2. To create a new MB Publish control, select Create a new MB Publish control to use, then, in the New JCX name field, enter the name for the new JCX file.
  6. In Step 3, select the applicable channel from the channel-name field. This specifies the channel to which your business process publishes the messages it receives from clients.
  7. Note: The message type field is populated with the data type of the message that is published to the channel. To learn how the channel is defined, see How Do I: Create Message Broker Channels?.

  8. Click Create.
  9. The Insert Control dialog box closes and the JCX file is created and displayed in the Application tab. The instance of the MB Publish control you created is displayed in the Data Palette.

  10. To view the individual methods in the Data Palette, click the + beside the MB Publish control.
  11. In the Data Palette, select the publish method in the control:
  12. For example, void publish(RawData value).

  13. Drag-and-drop the method onto the applicable business process in the Design View.
  14. A Control Send node is created. By default, the node is named publish.

  15. Double-click the publish node to open its node builder. The node builder opens on the General Settings tab with the Control and the publish method already selected.
  16. Click Send Data.
  17. In this tab, you can specify the message to be published to the selected Message Broker channel. The Control Expects field is populated with the data type of the parameter expected by the control.

  18. In the Select variables to assign field, click the arrow to display the variables in your project. Then select the applicable variable or create a new variable.
  19. To close the publish node builder, click the X in the top right-hand corner.

Related Topics

How Do I: Create Message Broker Channels?

How Do I: Subscribe to Message Broker Channels?

Message Broker Publish Control

Using Event Generators to Publish to Message Broker Channels

Dead Letter Channels

Previous Document Next Document