From: Hiram C. <ch...@us...> - 2002-05-12 02:41:38
|
User: chirino Date: 02/05/11 19:41:36 Modified: src/main/org/jboss/mq/server/jmx Tag: Branch_3_0 DestinationMBeanSupport.java Log: Was closing() the queue too soon since the DestinationManager needs to stop() the queue remove all the messages on the queue and then close() the queue. Fixes all the testsuite errors we were getting. Revision Changes Path No revision No revision 1.1.2.3 +5 -2 jbossmq/src/main/org/jboss/mq/server/jmx/DestinationMBeanSupport.java Index: DestinationMBeanSupport.java =================================================================== RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/server/jmx/DestinationMBeanSupport.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- DestinationMBeanSupport.java 9 May 2002 04:23:05 -0000 1.1.2.2 +++ DestinationMBeanSupport.java 12 May 2002 02:41:36 -0000 1.1.2.3 @@ -24,7 +24,7 @@ * Super class for destination managers. * * @author <a href="pr...@ti...">Peter Antman</a> - * @version $Revision: 1.1.2.2 $ + * @version $Revision: 1.1.2.3 $ */ abstract public class DestinationMBeanSupport extends ServiceMBeanSupport @@ -104,7 +104,10 @@ // Set securityConf at manager getServer().invoke(securityManager,"removeDestination", new Object[]{spyDest.getName()}, new String[] {"java.lang.String"}); } - + } + + protected void destroyService() throws Exception + { JMSDestinationManager jmsServer = (JMSDestinationManager) server.getAttribute(jbossMQService, "Interceptor"); |