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.h is included in your program.
- Create the shared library by compiling the program and linking it with the shared libraries libmqm* and libmqmzf*. 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 of libmqm and libmqmzf.
- 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.