The Novell exteNd Messaging Platform's JMS provides support for managing
destinations via the
JMQDestinationAdmin
interface that is available from the
JMQConnection
objects. A connection object created by JMS can be cast to either
JMQTopicConnection or JMQQueueConnection and the administration object
can be retrieved with the getDestinationAdmin
method.
The sample programs for this section shows how
to use the JMQDestinationAdmin
class to create and destroy
Queue and Topics.
Note that if the JMS server's security is enabled (msgsvc.security.enable
property is set to true in the msgsvc.properties
file), then a
proper username and password for an administrator is required to get the
JMQDestinationAdmin
object.
It is also possible to manage destinations either using the jmqutil command line utility or the JMS console. You can alternatively dump the entire destination and security state of a JMS server into an XML file using the jmqconfig utility program.