Sunday, August 10, 2008

Export/Import (MQ)

Export/Import MQ Binding How to

Websphere Integration Developer v612

Contact us...

Contents

Introduction

When to use MQ bindings
Consider an MQ binding when these factors are applicable:
  • You need to access a WebSphere MQ messaging system and need to use the MQ native functions
  • The services are loosely coupled
  • Reliability is more important than performance; that is, asynchronous data transmission is preferred over synchronous.
Related links

Working with MQ bindings

WebSphere MQ (WMQ)

WebSphere MQ programming model

Connectivity

Accessing services

Service import and export binding types

Selecting appropriate bindings


How to generate an MQ export Binding

Related links

Generating an MQ export binding

Generate MQ Export

In the assembly diagram, do the following:

  1. Right-click on a component (i.e DateTime_C)
  2. Select Generate Export > Messaging Binding > MQ Binding
  3. The Configure JMS Export Service dialog box opens (see below).

Configure Websphere MQ Export Service

An interface with a two-way operation results in the dialog shown on the opposite column.

Configure the MQ export service as follows:

  1. Message resource configuration
    Leave the default selection (Specify properties for configuring...).
  2. Request queue manager
    Enter any value (i.e MQqmgrname)
  3. Receive Destination queue
    Enter any value (i.e MQqnamereceivedest)
  4. Send Destination queue
    Enter any value (i.e MQqnamesenddest)
  5. Host Name
    Enter any value (i.e MQhostname)
  6. Leave the rest on default settings

After configuring the required properties, click OK to continue (see JMS export binding generated below).

Select Data binding

In the Data binding selection window, select the required data binding:

  1. Show data binding configurations
    (default) lists the data binding configurations you have created. Creating your own data binding configurations is discussed in Working with configurations that access external services.
  2. Show predefined data bindings
    lists the predefined data bindings provided by WebSphere Integration Developer. The available predefined data bindings are discussed in JMS, MQ JMS and generic JMS bindings. If you intend to use one of the default data bindings beginning with Simple JMS, you must have previously created the business objects required (see the Prerequisites section).
  3. Show data binding classes
    lists all data binding classes available.

Click OK to continue.

Select function selector

In the Function selector window, select the required function selector:

  1. Show function selector configurations (default) lists the function selector configurations you have created. Creating your own function selector configurations is discussed in Working with configurations that access external services.
  2. Show predefined function selectors
    lists the predefined function selectors provided by WebSphere Integration Developer. The available predefined function selectors are discussed in JMS, MQ JMS and generic JMS function selectors.
  3. Show function selector classes
    lists all function selector classes available.

MQ Export Binding generated

The basic MQ binding is created and shown in the properties view when the Binding tab is selected.

Note: The MQ binding is complete at this point. You would only change the values for the fields shown in the properties view if a change were required in the binding sometime after generation.

Messaging resource configuration

blah blah blah....later

How to generate an MQ import Binding

Related Links

Generating an MQ import binding

Generate MQ import from an MQ export

We will create an MQ import binding from an existing MQ export.
  1. Open the assembly diagram of a service requester module (i.e CCambil_Consumer_M)
  2. Drag the MQ export of the service provider module (i.e DateTime_CExport) which is in CCambil_Provider_M module and drop it into the assembly diagram of the service requester module (i.e CCambil_Consumer_M)
  3. A warning window appears (see below)

Creating Import from Export using MQ binding

Essentially, this warning message requires you to deploy the export module first, otherwise a runtime exception will occur.
Click OK to continue.
Wire the Import
Wire the service requester component (i.e CCambil_Consumer_C) to the import as required.

No comments: