conf/activemq.xml 新增配置
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" schedulerSupport="true">
jmsMessagingTemplate.convertAndSend(QUEUE, new HashMap<String, String>() {{
put("parmas1","");
put("params2", "");
}}, new HashMap<String, Object>(2) {{
put(ScheduledMessage.AMQ_SCHEDULED_DELAY, 12 * 3600 * 1000);
}});
标签:HashMap,队列,延时,put,new,activemq
From: https://www.cnblogs.com/Linzj5950/p/17835629.html