public boolean isQueue ( String queueName ) throws Exception { Address addr = Address . root ( ) . add ( SUBSYSTEM , SUBSYSTEM_MESSAGING , HORNETQ_SERVER , "default" ) ; String haystack = JMS_QUEUE ; return null != findNodeInList ( addr , haystack , queueName ) ; }
Checks to see if there is already a queue with the given name .