Creating DB2 user-defined functions for WebSphere MQ
You can create a DB2 user-defined function that reads or receives all messages from a WebSphere MQ message queue. The New WebSphere MQ User-Defined Function wizard simplifies the process of creating the user-defined function. The wizard also works with earlier versions of IBM's messaging product, known as MQSeries.
Prerequisites:
Before you run the wizard:
- Install WebSphere MQ or MQSeries 5.2 or later.
- Install the Application Messaging Interface (AMI).
- Enable the DB2 WebSphere MQIntegration functions
Go to the following Web sites for more information about completing these prerequisites:
To create a user-defined function for accessing messages on a WebSphere MQ queue:
- Switch to the Data perspective.
- Click File > New > Other to open the New dialog.
- Select Data in the left column and choose MQSeries User-Defined Function.
- Click OK. The wizard opens.
- Complete the necessary steps of the wizard.
- Click Finish.
The user-defined function is created and added to your database definition, and the user-defined function is built and registered on the database server.
Parent topic
DB2 user-defined functions (UDFs)
Related concepts
Developing DB2 user-defined functions
Using DB2 user-defined functions in applications
Related tasks
Creating DB2 user-defined functions using a wizard
Related reference
User-defined function catalog by DB2 Universal Database server
User-defined function support by type
Stored procedure and user-defined function support by DB2 Universal Database server type