JmsAdmin API delete Queue

"jun liu" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Hi!
      Enviroment :openjms7.6;oracle9.1; rmi;
      Root caused:  user JmsAdminServerIfc  delete the queues which  have 
created,
      Result: openjms server print :Javax.jms.JMSException:Cannot delete 
the 
           administrated destination 1817671903- true since there are 1 
active endpoints.
      Relative code as follow:
               JmsAdminServerIfc jmsAdmin = this.getJmsAdmin();
               Iterator it = jmsAdmin.getAllDestinations().iterator();
               for (; it.hasNext(); ) {
                  Destination destination = (Destination) it.next();
                  String queueName = ( (Queue) destination).getQueueName();
                 if (!jmsAdmin.isConnected(queueName) &&
                      0 == jmsAdmin.getQueueMessageCount(queueName)) {
                    jmsAdmin.unregisterConsumer(queueName);
                  jmsAdmin.removeDestination(queueName);
              }
     Neither use JmsAdmin Gui Tool,nor restart Server,How to resolve this 
problem?
     thanks a lot

_________________________________________________________________
浜ㄤ涓澶х靛欢绯荤 MSN Hotmail  http://www.hotmail.com  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.