IBM websphere mq - Message selector
I have configured the IBM websphere mq in my virtual asset. But now my requirement is that listener will fetch the request from the queue if certain condition is matched. There is an field named as Message selector where we can define conditions.but I want to know the exact format / syntax to put my conditon in that field. Please help me on this.
Comments
-
Hi,
Message selectors use a property name equals value syntax, an example would be
product = 'virtualize'
More information can be found in the documentation, search in the pages for "message selector"
https://docs.parasoft.com/display/SOAVIRT9103/Configuring+Server+and+Deployment+Settings
https://docs.parasoft.com/display/SOAVIRT9103/JMS+1#JMS1-UsingMessageSelectorFilters_Virt0 -
Thanks... I want to put selector from.the request body element. If certain element in the request is present then it will select the request. Let suppose I have an json request in the queue and it has an element named as "car" : " maruti" . how can I configure the same in my message selector. I have gone through the link but unabale to get it clear. Please help.me out with the above example.
0 -
Hi,
It sounds like what you want is a responder level correlation. The message selector determines if a message is picked up from the queue but responder correlations determine which responder will send back the response.
Here are a couple links that help explain how responder correlations work.
https://docs.parasoft.com/display/VIRT9106/Understanding+the+Message+Correlation+Process
https://docs.parasoft.com/display/SOAVIRT9103CTP310/Configuring+Responder+Correlations0 -
I don't want to deal with the responder correlation as I am sending static response always for all the request. I am talking about the message queue or the request queue from.where the listener will pick only the required request as per certain condition. It would be better if you can show me an example where the listener will select the json request as per the condition it is set.
0 -
This will be a great help for me. Thanks in advance.
0 -
Hi Dev,
If you are currently an active Parasoft customer, you can get in touch with our support team to get help. Please join Parasoft Customer Portal and create a support case for your question. https://parasoft.force.com/customerportal/0