-
Apr 23rd, 2008, 12:44 PM
#1
Difficulty Specifying MessageSelector in XML config
Hi,
I"m new to Springframework, and JMS for that matter, I'm trying to set-up a messageselector in the DMLC, and specify the messageseletor in the Spring XML config file. I'm getting an invalid comparison operation error. Looking for some pointers at this point.
My Spring Config looks like this
<bean
id="jmsListenerContainer"
class="org.springframework.jms.listener.DefaultMes sageListenerContainer">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destination" ref="rmsDestination" />
<property name="messageListener" ref="pojoMdpAdapter"/>
<property name="sessionTransacted" value="true"/>
<property name="messageSelector" value="10055 = 'XYZ' "/>
</bean>
Error Message:
23-Apr-2008 13:37:12.909 [19092322798021] INFO org.springframework.jms.listener.DefaultMessageLis tenerContainer::handleListenerSetupFailure - Setup of JMS message listener invoker failed - trying to recover: javax.jms.InvalidSelectorException: Invalid comparison operation
JMS Messages (formatted & edited for readability)
23-Apr-2008 11:20:35.146 [11886204698021] INFO TextMessage=
{ Header={ JMSMessageID={ID:db_uk_GTO_RMSFIXPublisher_S001UAT .438F480D925C5C:347736} JMSDestination={Topic[fixtrades.lt14]} JMSReplyTo={null} JMSDeliveryMode={PERSISTENT} JMSRedelivered={false} JMSCorrelationID={null} JMSType={null} JMSTimestamp={Wed Apr 23 11:20:26 EDT 2008} JMSExpiration={0} JMSPriority={4} }
Properties={ 10055={String:XYZ} 10029={String:New} 10057={String:XYZ} 10017={String:Spot} 10006={String:ARM} 10015={String:Open} }
Text={... msg body...} }
Last edited by mcmasty; Apr 23rd, 2008 at 12:47 PM.
Reason: Message cut off
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules