我报这个错,请各位解答一下
报这个错不知道为什么
报这个错不知道为什么
2017-12-04
public class ProducerServiceImpl implements ProducerService { @Autowired JmsTemplate jmsTemplate; @Resource(name = "queueDestination") Destination destination; public void sendMessage(final String message) { jmsTemplate.send(String.valueOf(destination), new MessageCreator() { public Message createMessage(Session session) throws JMSException { TextMessage textMessage =session.createTextMessage(message); System.out.println("发送消息" + textMessage.getText()); return textMessage; } }); System.out.println("发送消息" + message); } }
举报