Show TOC

Adding RequestResponseBean in the Module ProcessorLocate this document in the navigation structure

Use

You use the RequestResponseBean module to convert an asynchronous request message to a synchronous request message.

You use the module for an async/sync bridge for sender and receiver channels.

If the thread that enters the module is part of a transaction, the transaction is suspended.

If you are using the module in a sender adapter, it calls the messaging system.

If you are using the module in a receiver adapter, it calls a receiver.

If you configure the module in passThrough mode, it forwards the message to the adapter modules.

Prerequisites

You have configured a communication channel and are on the Module tab page in change mode.

Procedure

Add the Module in the Processing Sequence

  1. Enter the module name AF_Modules/RequestResponseBean.
  2. The module type is Local Enterprise Bean.

    The Module Key is displayed.

  3. Enter parameter names and values in the module configuration.

    Your entries depend on whether you are using the module in a sender or receiver adapter.

Add Parameters in the Module Configuration for the Sender Adapter

  1. To determine who the module is to forward the message to, enter passThrough under Parameter Name.
    • If you want the module to forward the message to the next module in the module chain, enter true under Parameter Value.
    • If you want the module to call the messaging system, enter false under Parameter Value. This is the default value.
  2. To define the timeout for the messaging system call, enter timeout under Parameter Name.

    Enter the Parameter Value in milliseconds.

    The default value is 300,000.

Add Parameters in the Module Configuration for the Receiver Adapter

  1. To determine who the module is to forward the message to, enter passThrough under Parameter Name.
    • If you want the module to forward the message to the next module in the module chain, enter true under Parameter Value.
    • If you want the module to call the ResponseOnewayBean module, enter false under Parameter Value.

      This is the default value.

  2. To determine the receiver channel, enter receiverParty under Parameter Name. Under Parameter Value, specify the receiver party.

    If you do not set this parameter, the information is taken from the message header of the message.

  3. To determine the receiver channel, enter receiverServiceunder Parameter Name. Under Parameter Value, enter the receiver communication component.

    If you do not set this parameter, the information is taken from the message header of the message.

  4. To determine the receiver channel, enter receiverChannelunder Parameter Name.

    Under Parameter Value, enter the receiver channel.

    If you do not set this parameter, the system searches for the collaboration agreement corresponding to the information from the message header of the message.

  5. To determine the receiver channel, enter adapterType under Parameter Name.

    Under Parameter Value, enter the adapter type.

  6. To determine the receiver channel, enter the parameter adapterNamespace.

    Under Parameter Value, enter the adapter namespace.