How Do I: Create Message Broker Channels?

Channel files define the Message Broker channels available in a WebLogic Integration application. Channel files must be placed in a Schema project in your application. Otherwise, they will not be built when you build your application or be visible to your application components.

This topic includes the following sections:

To Create Channels Files in Your Application

  1. Locate the Schemas project in the Application tab.
  2. Right-click the Schemas project and choose New —> Channel File from the drop-down menu.
  3. The New File dialog box is displayed.

  4. In the left pane, select Processes, then in the right pane, select Channel file.
  5. Enter a name for the file in the File name field.
  6. Note: As indicated by the file extension in the New File dialog box, the Channel file is automatically appended with channel.

  7. Click Create.
  8. Your new channel file is created and displayed in the Schemas folder in the Application tab. This file is a template file. The contents of the template file is displayed in the Source View, which you can edit to define the Message Broker channels for your application. For information about how to edit your channel file template, see To Configure Your Template Message Broker Channel File.

    Channel files are XML files and are valid against an XML Schema. The Schema is available at the following location in your WebLogic Platform installation:

    BEA_HOME\weblogic81\integration\lib\xmlschema\config\ChannelFile.xsd 
    

    In the preceding line, BEA_HOME represents the directory in which you installed WebLogic Platform.

To Configure Your Template Message Broker Channel File

  1. If your channel file is not visible, double-click the channel file in your Schemas project. The file is displayed in the Source View:
  2. Edit this code specific to your channel needs.

Note the following characteristics of the channel file:

Dead Letter Channels

If the Message Broker is unable to resolve the URI to which it is sending a message, the message is not discarded. Rather, it is routed to one of three dead-letter channels, depending on the data type. For example, when no subscribers are found, or registered subscribers do not match because of unsatisfied filter conditions, the message is sent to the appropriate dead-letter channel. WebLogic Integration provides the following dead-letter channels:

For example, an unmatched message published to an XML channel (that is, a channel that has messageType = "xml") is routed to the /deadletter/xml channel.

At design time, the dead-letter channels are available when you create MB Publish and MB Subscription controls. Your business processes can publish and subscribe to the dead-letter channels. You can use the dead-letter channels when you design error handling. For example, you can create a business process that includes static subscriptions to the dead-letter channels and design error-handling code to handle the unmatched messages published to those channels.

The Message Broker module in the WebLogic Integration Administration Console allows you to monitor and manage all the Message Broker channels in your application, including the dead-letter channels. To learn about accessing information about the dead-letter channels and dead-letter counts in your deployed application, see Message Broker in Managing WebLogic Integration Solutions at the following URL:

http://download.oracle.com/docs/cd/E13214_01/wli/docs81/manage/msgbroker.html 

Related Topics

Understanding the Message Broker Channels in Your Tutorial Application

Using Event Generators to Publish to Message Broker Channels

Transforming Non-XML Data

How Do I: Publish to Message Broker Channels?

How Do I: Subscribe to Message Broker Channels?

Event Generators at http://download.oracle.com/docs/cd/E13214_01/wli/docs81/manage/evntgen.html

Message Broker at http://download.oracle.com/docs/cd/E13214_01/wli/docs81/manage/msgbroker.html

Previous Document Next Document