This content has been marked as final.
Show 3 replies
-
1. Re: Invalid Selector
timfox May 23, 2007 11:51 AM (in response to macross27)How about adding quotes to your selector?
JMSCorrelationID='1179926940029'
BTW are you sure you want to be be using selectors for something as dynamic as correlation ids? Setting a consumer with a selector is likely to be a fairly slow operation (compared to sending/receiving a message) and probably not something you want to do to implement a request/response pattern.
Have you considered using temporary queues instead? -
2. Re: Invalid Selector
macross27 May 23, 2007 6:15 PM (in response to macross27)Thanks for the tip. However I can't do anything on the side of the application which uses the odd correlation id or the selector as it is closed source. So I have to deal with that in JBoss messaging. Any ideas to that?
I guess that the correlation id is a string is part of Sun's JMS spec? -
3. Re: Invalid Selector
timfox May 23, 2007 6:22 PM (in response to macross27)"macross27" wrote:
Thanks for the tip. However I can't do anything on the side of the application which uses the odd correlation id or the selector as it is closed source. So I have to deal with that in JBoss messaging. Any ideas to that?
The selector is invalid, you need to fix your application - this is not a JBM issue.
I guess that the correlation id is a string is part of Sun's JMS spec?
Yes, http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/jms/Message.html#getJMSCorrelationID()