gjanardh commented on pull request #8544:
URL: https://github.com/apache/pulsar/pull/8544#issuecomment-1064619792


   @andrekramer1  Thanks for your contribution to the consumer filtering 
feature. We heavily use JMS brokers for messaging and trying Pulsar for few use 
cases now. Support for message selectors/filters (in line with the JMS Spec) 
will help existing JMS users switching to Pulsar. Hoping to see this feature in 
a future release of Pulsar!
   
   Consumer consumer = client.newConsumer(Schema.STRING)
   .topic("sometopic")
   **.selector("prop = 'value' and prop2 = val2 or (prop3 like '%val3%')") // A 
message selector similar to JMS Message selector SQL 92 syntax. 
https://docs.oracle.com/javaee/7/api/javax/jms/Message.html**
   .subscribe();


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to