Creating your own service component on IBM i
Use this information to learn how to create a service component on IBM® MQ for IBM i.
To create your own service component:
- Ensure that the header file
cmqzc.his included in your program. - Create the shared library by compiling the program and linking it with the shared libraries
libmqm*andlibmqmzf*.Note: Because the agent can run in a threaded environment, you must build the OAM to run in a threaded environment. This includes using the threaded versions oflibmqmandlibmqmzf. - Add stanzas to the queue manager configuration file to define the service to the queue manager and to specify the location of the module.
- Stop and restart the queue manager to activate the component.