@RequestMapping(value = "/getjms.action", method = RequestMethod.GET) public void getTxt() throws BusinessException { try { String ccd = proxy.receiveMessage(); LOG.debug("get jms message " + ccd); } catch (JMSException e) { throw new BusinessException("JMS 接收出错.."); } }
@RequestMapping(value = "/send.action", method = RequestMethod.GET) public void sendTxt() { proxy.sendMessage("hello world!"); }