Skip Headers
Oracle Procedural Gateway® Visual Workbench for WebSphere MQ Installation and User's Guide
10g Release 2 (10.2) for Microsoft Windows (32-Bit)

Part Number B19082-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Feedback

Go to previous page
Previous
Go to next page
Next
View PDF

1 Introduction

The Oracle Procedural Gateway Visual Workbench for WebSphere MQ is for developers who are writing Oracle applications that communicate with non-Oracle message queuing applications and who are using an Oracle Procedural Gateway for WebSphere MQ for message queuing.

For detailed information about Oracle Procedural Gateways for message queuing systems, and about message queuing systems in general, refer to the gateway installation guide for your platform.

The following topics are included:

1.1 Message Queuing Systems

Message queuing systems enable communication between applications. In a message queuing system, an application stores messages in a queue that is accessible to another application. One application sends a message to a queue, and the other application asynchronously retrieves the message and processes the information it contains.

1.2 The Oracle Procedural Gateway for Message Queuing Systems

Oracle Procedural Gateways for message queuing systems enable Oracle applications to send messages to, and retrieve messages from, message queuing systems.

The gateway converts Oracle remote PL/SQL procedure calls into calls understood by the message queuing system's interface. Using the gateway, Oracle applications can access non-Oracle applications that are enabled for message queuing.

The Oracle Procedural Gateway for message queuing provides the basic mechanism that enables Oracle applications to communicate with non-Oracle applications using message queuing systems. To write these applications without a development tool like the PG4MQ Visual Workbench, you must:

The PG4MQ Visual Workbench automates these tasks for developers.

1.3 The PG4MQ Visual Workbench Development Environment

The PG4MQ Visual Workbench simplifies the development work necessary to access message queuing applications through the gateway. The PG4MQ Visual Workbench does this by handling data conversion between incompatible data types in messages exchanged between Oracle applications and non-Oracle message queuing applications.

The PG4MQ Visual Workbench has two components:

Use the Visual Workbench to develop interface profiles that contain the information necessary to communicate with other message queuing applications. The Visual Workbench stores the interface profile information in the Visual Workbench repository. Using the Visual Workbench, you compile the interface profile, producing a MIP that contains the PL/SQL code needed for Oracle applications to communicate with non-Oracle message queuing applications in a run-time environment. You provide MIP templates as a starting point for your application to use the MIP, and then compile and test the MIP on the production server.

Figure 1-1 illustrates the PG4MQ Visual Workbench's development and run-time environments.

Figure 1-1 Development Environment

Description of Figure 1-1 follows
Description of "Figure 1-1 Development Environment"

1.3.1 The PG4MQ Visual Workbench

The Visual Workbench (one for each developer) simplifies the work needed to access message queuing applications through the gateway. Use the Visual Workbench to:

  • create data profiles

  • create message queue profiles

  • create interface profiles

  • generate a MIP

  • Test the gateway and compile the MIP in the development environment

  • Provide MIP templates to use as a starting point for development

  • Compile the MIP and test it on the production system

The MIP uses the profile information you provide, enabling communication between an Oracle application and a non-Oracle message queuing application.

1.3.1.1 Creating Data Profiles

The gateway and a message queuing system are the transport mechanisms for message data. They provide no data conversion capability. This means that usually you must supply code to convert data between Oracle data types and non-Oracle data types.

Using the Visual Workbench, you create data profiles that, when associated with an interface profile, automatically add the necessary conversion code before a message is sent or after a message has been retrieved. The Visual Workbench maintains the data profiles in the Visual Workbench repository.

To have the interface convert a COBOL structured message to PL/SQL, you create a COBOL data profile defining data conversion definitions. The Visual Workbench generates PL/SQL code to map between the COBOL data conversion definitions and those of PL/SQL. Currently, only COBOL version IBM VS/COBOLII is supported.


See Also:

"Creating a Data Profile" for details

1.3.1.2 Creating Message Queue Profiles

Using the Visual Workbench, you define the attributes of the message queues used to communicate between Oracle and non-Oracle applications. A message queue profile specifies how and where inter-application messages are sent to the message queuing system and are retrieved from it.

When a message queue profile is associated with an interface profile, the Visual Workbench generates the PL/SQL code necessary to access the message queuing gateway and stores it in the Visual Workbench repository. "Creating a Message Queue Profile" for details


See Also:

"Creating a Message Queue Profile" for details

1.3.1.3 Creating Interface Profiles and Generating the MIP

Using the Visual Workbench Wizard, you combine one data profile and one message profile to define or update an interface profile. The interface profile:

  • Defines how messages are exchanged with the non-Oracle application, using the gateway and the message queuing system

  • Defines how message data is converted for communication between the applications

The Visual Workbench uses the interface profile information to generate a MIP, a PL/SQL package that provides a high-level interface between Oracle applications and non-Oracle message queuing applications. To create an interface profile you specify:

  • One data profile

  • One message queue profile

  • A unique name for the interface

  • The database link for communication between Oracle and a message queuing system, through the gateway

After you have defined the interface profile, the Visual Workbench automatically generates a MIP based on the interface profile information you specified. A MIP is a PL/SQL interface to send messages to, and retrieve messages from, a non-Oracle message queuing system.

When you generate a MIP, the Visual Workbench produces the MIP itself, data conversion code, and templates that show how to access the message queuing system using the MIP.

Using the Visual Workbench, you can install the generated MIP on any Oracle server where your application is running.

1.3.1.4 Testing the Gateway

The PG4MQ Visual Workbench produces PL/SQL test code in addition to the generated MIP. Use the test code to verify the interaction with the procedural gateway before you compile the MIP on the target server. Using the test code before compiling the MIP helps identify any problems in the interaction with the gateway. It is easier to identify such problems before compiling than when testing the MIP itself.


See Also:

"Testing the Gateway" for more information

1.3.1.5 Compiling the MIP

The MIP and data conversion code must be compiled on an Oracle server before you can use them in your application. After completing the development and testing, use the Visual Workbench to compile the generated MIP on the server you choose for compiling.


See Also:

"Compiling the MIP"" for more information

1.3.1.6 Using the MIP Templates

The PG4MQ Visual Workbench produces templates for the generated MIP. After you have verified the test code and compiled the interface, you can complete the templates and test them from the PG4MQ Visual Workbench. The templates can be used as a starting point for your application to use the MIP for sending and retrieving messages.

1.3.1.7 Preparing the MIP for Production

After completing development, you:

  • Deploy the MIP on one or more production system servers where you plan to run your applications that use the MIP

  • Compile the MIP on the production system

  • Test the MIP on the production system


See Also:

"Preparing the MIP for Production" for more information

1.3.2 The PG4MQ Visual Workbench Repository

The Visual Workbench repository stores all data profiles, message queue profiles, interface profiles, and MIPs. The repository resides in an Oracle server and can be created in any Oracle server in the network. The Oracle server used for the repository need not be the same Oracle server that is used in the production system by the applications referencing the MIPs, it can be a different Oracle server.