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