You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by suyog barve <su...@yahoo.com.INVALID> on 2017/01/30 22:27:28 UTC
TomEE override/parameterize ActivationConfigProperty
I am struggling to provide a dynamic queue/topic destination for MDB
1) Failed to use Annotation based approach which is not expanding the property value
@MessageDriven(name="PingPongMDB", activationConfig = {
@ActivationConfigProperty(
propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(
propertyName = "destination",
propertyValue = "${ref_fooQueue}")})
2) Failed to use -Dref_fooQueue=fooQueue in conjunction with ejb-jar.xml
<activation-config>
<activation-config-property>
<activation-config-property-name>destination</activation-config-property-name>
<activation-config-property-value>"${ref_fooQueue}"</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>destinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
</activation-config>
I am not able to find a way to dynamically/runtime pass value of destination.
I believe ActivationConfigPropertyOverride feature was added in TOMEE-1704
https://issues.apache.org/jira/browse/TOMEE-1704