public static void expireMessages(String destinationType, String destinationName) throws Exception { JBossMQProxy proxy = new JBossMQProxy(JMSTestFixture.getJndiHost(), JMSTestFixture.getJndiPort()); proxy.expireMessages("name=\"" + destinationName + "\",type=" + destinationType); }