Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I want to create a JMS selector to test if a variable exists and if the variable exists, if its value is right. A selector like this :
(uid NOT EXISTS) OR (uid='foo')
What is the right statement please to do this ?
为尚未设置的名称获取属性值的处理方式就像该属性以空值存在一样。因此,如果属性不存在,则将其视为空值。
在 JMS 命名法中,它被称为不存在的属性。
因此,您可以将 JMS 选择器设置为,
uid is null or uid='foo'