Understanding the Message Broker Channels in Your Tutorial Application

This topic provides information about the Message Broker channels used in Part IV of the tutorial. You are not need to perform any of the steps described in this topic to complete the tutorial.

Channel files define the Message Broker channels available in a WebLogic Integration application. Channel files must be placed in a Schemas project in your application. Otherwise, they are not visible to your application components. A channel file, named Validate.channel, is provided for you in the Schemas project in your tutorial application. Validate.channel specifies two Message Broker channels: ValidateOrder and StopQuote.

This topic includes the following sections:

Creating Channel Files in Your Application

  1. Locate a Schemas project in the Application pane.
  2. Right-click the Schemas project and choose New —> Channel File from the drop-down menu. The New File dialog box is displayed.
  3. Ensure that Processes is selected in the left pane, and Channel File is selected in the right pane.
  4. Enter a name for the file in the File name field.
  5. Note: As indicated by the file extension in the New File dialog box, the Channel File is automatically appended with channel as its suffix.

  6. Click Create.
  7. Your new channel file is created and displayed in your Schemas folder on the Application tab. This file is a template file that you edit to define the Message Broker channels for your application.

  8. To view the contents of the template file, go to the Application pane, then double-click the file you created in the Schemas folder. The file is displayed in the Source View.
  9. Channel files are XML files that 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.

Understanding the Channels Specified for the Tutorial

Click the Validate.channel file provided for you in your Schemas project. The file is displayed in the Source View. The following listing displays the channel definitions in Validate.channel:

<?xml version="1.0"?>  
: 
<channels channelPrefix="/TutorialPrefix"
          xmlns="http://www.bea.com/wli/broker/channelfile" 
		  xmlns:et="http://www.example.org/request"> 
    <channel name ="Tutorial" messageType="none"> 
      <channel messageType="xml" name="ValidateOrder"
                  qualifiedMessageType="et:quoteRequest"/>       
      <channel messageType="string" name="StopQuote"/> 
    </channel> 
</channels> 

Note the following characteristics of the Validate.channel file:

Related Topics

Message Broker Controls

Previous Document