須要在activemq.xml配置文件的broker元素裏面添加schedulerSupport="true"apache
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" schedulerSupport="true"> <!--省略--> </broker>