You can't, based on the raw JMS API. Such functionality might be available in a particular vendor's implementation via auxiliary classes or JMX. For instance, Apache ActiveMQ has numerous classes to assist in interacting with the broker, beyond the basic API.