【发布时间】:2018-09-16 01:57:34
【问题描述】:
使用 liberty 18.0.0.1 和这样的 MDB:
@MessageDriven(
activationConfig = {
@ActivationConfigProperty(propertyName = "destination", propertyValue = "distributedACLCache"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
@ActivationConfigProperty(propertyName = "subscriptionDurability", propertyValue = "Durable"),
@ActivationConfigProperty(propertyName = "subscriptionName", propertyValue = "distributedACLCache"),
@ActivationConfigProperty(propertyName = "clientId", propertyValue = "cli-id-01")
在这种情况下,clientId 是静态的,但是如果我想在具有不同 clientId 的多个实例中部署此 MDB,这似乎是不可能的?
有没有办法从当前运行时的环境变量或属性中注入 clientId ?
/bwa
【问题讨论】:
标签: jms ejb websphere-liberty jms-topic