Invoking a module from another module

Mediation modules and business integration modules have interfaces in their exports, so that the module can be invoked by another module. You can invoke one mediation module from another mediation module. Or, if you are running your application on the WebSphere Process server you can invoke a mediation module from a business integration module

. To illustrate the steps to invoke a component in a different module, we will use the following example.

ModuleA is a business integration module that contains a business process component named MyProcess. You want MyProcess to invoke a mediation flow component named MedFlow, in mediation module MedModuleB. The mediation flow component implements interface MedFlowBInterface, which is stored in a resource library named ResourceLib.

  1. Open MedModuleB in the assembly editor. Drag MedFlowBInterface onto the canvas. In the component creation dialog, select Export with no binding. Select the export, right-click, and select Generate Binding > SCA Binding. Rename the export ExportMedFlow, and wire it to MedFlow.
  2. Open ModuleA in the assembly editor. Create an import with SCA binding, and give it the interface MedFlowBInterface. Rename the import to ImportMedFlow. In the details page of the property view of the import, select MedFlowBInterface, right click and select Wire (Advanced) . Select MedModuleB and ExportMedFlow as targets of this import.
Use the same steps to invoke any type of module from any other type of module.
Related concepts
Components and mediation modules
Approaches to assembling a mediation module
Quality of service: Qualifiers for mediation services
Using Java in a mediation module
Related tasks
Creating a mediation module
Opening a mediation module assembly
Setting assembly editor preferences
Adding and wiring components
Editing the properties of elements in the mediation module assembly
Adding Qualities of Service (QoS) qualifiers
Processing events in a sequence
Working with implementations
Generating bindings for imports and exports
Interoperability with services from other vendors
Fixing errors in the assembly diagram
Best practice: Do not make changes to J2EE staging projects
Related reference
Assembly editor for mediation modules

Related information

Tutorial: Wire components using the assembly editor
Tutorial: Create a mediation flow
Samples: Mediation Flow editor

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.