Creating your own service component
To create your own service component:
- For all platforms, ensure that the header file cmqzc.h is included
in your program.
- For UNIX(R) systems: Create the shared library by compiling
the program and linking it with the shared libraries libmqm* and libmqmzf*. (The threading suffixes and file extensions vary by platform.)
Note:
Because the agent can run in a threaded environment, you must build
the OAM and Name Service to run in a threaded environment. This includes using
the threaded versions of libmqm and libmqmzf.
- For Windows(R): Create a DLL by compiling
the program, and linking it with the libraries MQM.LIB and MQMZF.LIB.
See the WebSphere MQ Application Programming Guide for details of how to compile and link code for
shared libraries.
- Add stanzas to the queue manager configuration file to define the service
to the queue manager and to specify the location of the module. Refer to the
individual chapters for each service, for more information.
- Stop and restart the queue manager to activate the component.