Owner manual

Table 2 Management operations (continued)
NSMQ SupportDescriptionOperations
NSMQ
Management
Object
(Mbean)
YesAdds a topic destination to the
broker.
addTopic(String name)
YesAdds a queue destination to the
broker.
addQueue(String name)
YesRemoves a topic destination from
the broker.
removeTopic(String name)
YesRemoves a queue destination from
the broker.
removeQueue(String name)
NoCreates a new durable topic
subscriber.
createDurableSubscriber(String
clientID,String subscriberName,String
topicname,String selector)
NoDestroys a durable subscriber.destroyDurableSubscriber(String clientId,
String subscriberName)
YesReloads log4j.properties from
the classpath.
reloadLog4jProperties()
YesStarts the broker.start()
YesResets the statistics.resetStatistics()
Connection YesStarts the specific connection.start()
YesStops the specific connection.stop()
YesDisplays the number of clients
connected to broker through this
connection.
connectionCount()
Connector
YesEnables statistics gathering.enableStatistics()
YesResets the statistics.resetStatistics()
YesDisables statistics gathering.disableStatistics()
YesStarts the specific connector.start()
YesStops the specific connector.stop()
YesFetches the message with specified
messageId.
getMessage(String messageId)
Queue
YesRemoves all the messages from the
queue.
purge()
YesRemoves a message from the
destination by JMS message ID. If
removeMessage(String messageId)
the message is dispatched, it cannot
be deleted and false is returned.
YesRemoves up to a specified number
of messages from the destination
removeMatchingMessages(String selector,
maximumMessages)
based on an SQL-92 selection on
the message headers or XPATH on
the body.
YesRemoves messages from the
destination based on an SQL-92
removeMatchingMessages(String selector)
selection on the message headers
or XPATH on the body.
Monitoring activities 33