我想检索两个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