Does JRun JMS implementation supports selector?
In my implementation, I differiante messages by their type through JMSType
header. It's either the string STAT or ERROR. I want the server to filter
the type with a selector.
When I output the String object used in the selector I have the following
result:
[[
- declaration: private final String _selector;
- initialization in my class constructor: this._selector = "JMSType =
'"+type+"'";
- debug output statement: System.out.println("_selector used is : " +
_selector);
- on the output window: _selector used is : JMSType = 'STAT'
]]
When I used "createSubscriber(_topic,_selector,false);", the resulting
subscriber receives no message.
However, when I use "createSubscriber(_topicForManager);", the resulting
subscriber receives messages, and if I do:
[[
String type = _message.getJMSType();
System.out.println("getJMSType returned : " + type);
]]
then my output shows:
[[
getJMSType returned : STAT
]]
What do I do wrong?
CMR
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists