Jms 激活配置属性值的Reg ex

Jms 激活配置属性值的Reg ex,jms,ejb-jar.xml,Jms,Ejb Jar.xml,我可以在ejb-jar.xml中为激活配置属性值提供一个正则表达式模式吗 而不是像这样的东西 <activation-config-property> <activation-config-property-name>messageSelector</activation-config-property-name> <activation-config-property-value>header='90S' or header='90MS' or

我可以在ejb-jar.xml中为激活配置属性值提供一个正则表达式模式吗

而不是像这样的东西

<activation-config-property>
<activation-config-property-name>messageSelector</activation-config-property-name>
<activation-config-property-value>header='90S' or header='90MS' or header='92S' or header='97S' or header='89S' or header='96CDS'</activation-config-property-value>
</activation-config-property>

消息选择器
header='90S'或header='90MS'或header='92S'或header='97S'或header='89S'或header='96CDS'
我需要这样的东西

<activation-config-property>
<activation-config-property-name>messageSelector</activation-config-property-name>
<activation-config-property-value>header='%S%'</activation-config-property-value>
</activation-config-property>

消息选择器
标题=“%S%”
请建议


谢谢,

简短的回答是:否。不在JMS消息选择器中,如

最接近正则表达式的是“LIKE”结构,如SQL:

header LIKE 9%S // matches 9.*S
header LIKE 9_S // matches 9.S
它可以让您简化选择器,但它离regex的灵活性还很远