Apache camel 如何在camel蓝图中动态设置枚举值

Apache camel 如何在camel蓝图中动态设置枚举值,apache-camel,jbossfuse,blueprint-osgi,Apache Camel,Jbossfuse,Blueprint Osgi,我正在尝试为XML DSL中的threadpoolprofiles-rejectedPolicy参数(类型为enum)动态设置外部属性文件中的值。这样做时,我得到了以下错误- 原因:org.xml.sax.SAXParseException:cvc枚举有效:值“{abc.rejectedpolicy}}”对于枚举“[Abort,Discard,CallerRuns,DiscardOlested]”无效。它必须是枚举中的值 代码片段- <threadPoolProfile defaultPr

我正在尝试为XML DSL中的threadpoolprofiles-rejectedPolicy参数(类型为enum)动态设置外部属性文件中的值。这样做时,我得到了以下错误-

原因:org.xml.sax.SAXParseException:cvc枚举有效:值“{abc.rejectedpolicy}}”对于枚举“[Abort,Discard,CallerRuns,DiscardOlested]”无效。它必须是枚举中的值

代码片段-

<threadPoolProfile defaultProfile="false" id="abc"
          keepAliveTime="{{abc.keepalivetime}}"
            maxPoolSize="{{abc.maxpoolsize}}"
            maxQueueSize="{{abc.maxqueuesize}}"
            poolSize="{{abc.poolsize}}" 
            rejectedPolicy="{{abc.rejectedpolicy}}"/>