0

我想检索在两个 PutTime 之间的队列中发送的消息。
我尝试使用此查询:

TextMessage vMessage = (TextMessage)  
  super.receiveSelected("Root.MQMD.PutDate = '"+pPutDate+"' 
         AND Root.MQMD.PutTime BETWEEN CAST('103345' AS TIME) AND CAST('104345' AS TIME)");

但是我有一个消息选择器语法异常。这个查询有什么问题?

org.springframework.jms.InvalidSelectorException: JMSWMQ2008: 
Impossible to open the message queue.
It's caused by the the bad syntax of the query
4

0 回答 0