2017-06-13 69 views
0

爲什麼這個路由拋出exceprion,我該如何解決這個問題? 監製:發佈前ActiveMQ刪除目標

from("rmi:endpoint"). 
.setHeader(JmsHeaders.DELIVERY_MODE, constant("PERSISTENT")) 
.to(ExchangePattern.InOut, "activemq:myQueue?requestTimeout=86400000"); 

消費者:

from("activemq:myQueue").to("http://....") 

例外:

org.apache.camel.RuntimeCamelException: org.springframework.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:stws2503-55943-1497338780769-6:1:1 

更新:

 <artifactId>activemq-broker</artifactId> 
     <version>5.14.5</version> 

中添加PARAM

broker.url=tcp://localhost:61616?transport.useInactivityMonitor=false 

例外仍然拋出發現

問題:

問題在臨時隊列,becouse它在內存中後重新啓動服務器的目的地不存在,我怎麼能避免這個問題?有任何想法嗎 ??

我試圖改變setUseTempMirroredQueues(false)broker.setCacheTempDestinations(false)

回答

0

問題就迎刃而解了。我剛加了params replyToType=ExclusivereplyTo