@Override public Object execute() throws Exception { System.out.println(getJmsService().move(connectionFactory, source, destination, selector, username, password) + " message(s) moved"); return null; }
@Override public int move(String connectionFactory, String source, String destination, String selector, String username, String password) throws MBeanException { try { return jmsService.move(connectionFactory, source, destination, selector, username, password); } catch (Throwable t) { throw new MBeanException(null, t.getMessage()); } }
public Object doExecute() throws Exception { System.out.println(getJmsService().move(connectionFactory, source, destination, selector, username, password) + " message(s) moved"); return null; }