Service
The programs can be split into the following types:
Service objects are a way of defining programs to be executed when a queue manager starts or stops.
The programs can be split into the following types:
- Servers
- A server is a service object that has the parameter SERVTYPE specified as SERVER. A server service object is the definition of a program that will be executed when a specified queue manager is started. Only one instance of a server process can be executed concurrently. While running, the status of a server process can be monitored using the MQSC command, DISPLAY SVSTATUS. Typically server service objects are definitions of programs such as dead letter handlers or trigger monitors, however the programs that can be run are not limited to those supplied with WebSphere MQ. Additionally, a server service object can be defined to include a command that will be run when the specified queue manager is shutdown to end the program.
How To Define Server Type Service Object
Define Service(Service-Name) ServType(Server) Control(QMGR)
StartCmd('runmqlsr.exe') StartArg('-m QMGR_NAME -t TCP -p 1414')
StopCmd('endmqlsr.exe') StopArg('-m QMGR-NAME -t TCP -p 1414')
How To Start Service
Start Service(Service-Name)
How To Stop Service
Stop Service(Service-Name)
How To Display Service Status
Display SVStatus(Service-Name) - Commands
- A command is a service object that has the parameter SERVTYPE specified as COMMAND. A command service object is the definition of a program that will be executed when a specified queue manager is started or stopped. Multiple instances of a command process can be executed concurrently. Command service objects differ from server service objects in that once the program is executed the queue manager will not monitor the program. Typically command service objects are definitions of programs that are short lived and will perform a specific task such as starting one, or more, other tasks.
How To Define Command Type Service Object
Define Service(Service-Name) ServType(Command) Control(QMGR)
StartCmd('runmqtrm.exe') StartArg('-m QMGRNAME -q INITQ-Name')
How To Start Service
Start Service(Service-Name)
How To Stop Service
Stop Service(Service-Name)
How To Display Service Status
Display SVStatus(Service-Name) (Won't Work for Command Type)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.